Le mar. 11 sept. 2018 à 22:09, Michael Jackson
a écrit :
> I add it manually each and every time. I have to tell all new developers
> to remember to add the flag otherwise they are still sitting after an hour
> waiting on our code to compile wondering why it takes so long. Then it hits
> us,
level of my build system prevent me from needing to
customize compile flags for individual targets.
I hope this helps.
-kt
-Original Message-
From: CMake On Behalf Of Michael Jackson
Sent: Tuesday, September 11, 2018 2:10 PM
To: cmake@cmake.org
Subject: Re: [CMake] Appending to CMAKE
I add it manually each and every time. I have to tell all new developers to
remember to add the flag otherwise they are still sitting after an hour waiting
on our code to compile wondering why it takes so long. Then it hits us, "Oh,
Yeah. Open CMake-Gui and set the /MP flag". I'm frustrated at
: Marc CHEVRIER
Date: Tuesday, September 11, 2018 at 1:28 PM
To: Michael Jackson
Cc: CMake
Subject: Re: [CMake] Appending to CMAKE_CXX_FLAGS
If you set directory property at the top level CMakeList.txt, before any target
definition, all targets will inherit this value.
And, because pr
On 09/11/2018 01:03 PM, Marc CHEVRIER wrote:
The best approach is to use properties (see
https://cmake.org/cmake/help/git-master/manual/cmake-properties.7.html).
At directory level and target level you can use property
'COMPILE_OPTIONS'. These properties can be updated using, respectively
Hello!
Did you consider adding the flag manually during project configuration? I do
not know you use case, but after some thinking about the best way of
achieving multiprocess compilation under MSVS with CMake I decided, that the
simplest, most portable and flexible is to just add this flag
Marc CHEVRIER
> *Date: *Tuesday, September 11, 2018 at 1:04 PM
> *To: *Michael Jackson
> *Cc: *CMake
> *Subject: *Re: [CMake] Appending to CMAKE_CXX_FLAGS
>
>
>
> The best approach is to use properties (see
> https://cmake.org/cmake/help/git-master/manual/cmake-proper
[e] mike.jack...@bluequartz.net
[w] www.bluequartz.net
From: Marc CHEVRIER
Date: Tuesday, September 11, 2018 at 1:04 PM
To: Michael Jackson
Cc: CMake
Subject: Re: [CMake] Appending to CMAKE_CXX_FLAGS
The best approach is to use properties (see
https://cmake.org/cmake/help/git-master
The best approach is to use properties (see
https://cmake.org/cmake/help/git-master/manual/cmake-properties.7.html).
At directory level and target level you can use property
'COMPILE_OPTIONS'. These properties can be updated using, respectively
'add_compile_options' and 'target_compile_options'.
What is the “modern” way to append to CMAKE_CXX_FLAGS? This is the logic that I
would like:
If (MSVC)
Set(CMAKE_CXX_FLAGS ${ CMAKE_CXX_FLAGS} “/MP”)
Endif()
I have always heard that appending to the compile flags in this way is “bad”.
What is the best practice for doing
10 matches
Mail list logo