-------- Forwarded Message -------- Subject: Fwd: cmake default without -O3 and order of args/options in cmake call Date: Sun, 9 Aug 2020 18:03:47 +0200 From: Stefan Kurtz <kurtz@zbh.uni-hamburg.de> Reply-To: kurtz@zbh.uni-hamburg.de Organization: Universitaet Hamburg To: eqan-dev-owner@lists.fu-berlin.de CC: Hannes Hauswedell <hannes.hauswedell@fu-berlin.de> As suggested on the seqan web pages I had send an E-mail to eqan-dev@lists.fu-berlin.de, but I received the following message: --- Your message has been rejected, probably because you are not subscribed to the mailing list and the list's policy is to prohibit non-members from posting to it. If you think that your messages are being rejected in error, contact the mailing list owner at seqan-dev-owner@lists.fu-berlin.de. -- Please forward the message to the Seqan developers. Kind regards, Stefan Kurtz -------- Forwarded Message -------- Reply-To: kurtz@zbh.uni-hamburg.de To: seqan-dev@lists.fu-berlin.de From: Stefan Kurtz <kurtz@zbh.uni-hamburg.de> Subject: cmake default without -O3 and order of args/options in cmake call Organization: Universitaet Hamburg Message-ID: <cb4e36e9-814a-db1e-461a-c853efcc4300@zbh.uni-hamburg.de> Date: Sun, 9 Aug 2020 17:56:49 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------6508A45FC9F37F3913E7BE76" Content-Language: en-US Dear Seqan3-developers, this email refers to the 'Quick Setup (Cmake)' section of SeqAn3 3.0.2. 1) I followed the description for the Cmake-setup and noticed in the example CMakeList.txt shown at the end of https://docs.seqan.de/seqan/3-master-user/setup.html that compiler optimization options such as -O3 is missing, which will lead to poor performance for users who do not recognize it. I know use add_compile_options(-DNDEBUG -Wall -Wextra -Wunused-parameter -Wunused-variable -pedantic -Werror -O3) in CmakeLists.txt. 2) The cmake-setup specifies that one has to call cmake ../source -DCMAKE_CXX_COMPILER=/path/to/executable/g++-7 The help pages of cmake version 3.16.3 on macOS and cmake version 3.10.2 on Linux state that options come before arguments, but only the macOS version enforces this. So on my macOS system only cmake -DCMAKE_CXX_COMPILER=/path/to/executable/g++-7 ../source works. To simplify the use for macOS, it is probably better use this order in the cmake-setup section (and elsewhere) which works on both platforms. Kind regards, Stefan Kurtz -- Prof. Dr. Stefan Kurtz Zentrum fuer Bioinformatik Universitaet Hamburg Bundesstrasse 43 20146 Hamburg Germany Email: kurtz@zbh.uni-hamburg.de URL: http://www.zbh.uni-hamburg.de/kurtz Phone: +49 (40) 42838 7311 FAX: +49 (40) 42838 7312