, September 07, 2011 4:19 AM
*To:* David Cole
*Cc:* David Dunkle; cmake@cmake.org
*Subject:* Re: [CMake] novice question: modification of FLAGS rule
variable?
** **
What you can do however is set the variable which uses the FLAGS
definition, i.e. CMAKE_C_COMPILE_OBJECT in your example
To: David Dunkle
Cc: David Cole; cmake@cmake.org
Subject: Re: [CMake] novice question: modification of FLAGS rule variable?
The set_target_properties() of COMPILE_FLAGS allows you to add the -DDEBUG just
for the mylibd target (although you should really use the COMPILE_DEFINITIONS
property
Coombs [mailto:glenn.coo...@gmail.com]
*Sent:* Thursday, September 08, 2011 3:15 AM
*To:* David Dunkle
*Cc:* David Cole; cmake@cmake.org
*Subject:* Re: [CMake] novice question: modification of FLAGS rule
variable?
** **
The set_target_properties() of COMPILE_FLAGS allows you to add
...@gmail.com]
Sent: Thursday, September 08, 2011 3:15 AM
To: David Dunkle
Cc: David Cole; cmake@cmake.orgmailto:cmake@cmake.org
Subject: Re: [CMake] novice question: modification of FLAGS rule variable?
The set_target_properties() of COMPILE_FLAGS allows you to add the -DDEBUG just
What you can do however is set the variable which uses the FLAGS
definition, i.e. CMAKE_C_COMPILE_OBJECT in your example. I have a
CMakeLists.txt file where I override the default assembler flags:
set(CMAKE_ASM-ATT_COMPILE_OBJECT CMAKE_ASM-ATT_COMPILER ${ASM_SYS_FLAGS}
-o OBJECT SOURCE)
to use
to pass the -DDEBUG to
the compile of one and not the other.
-David
From: Glenn Coombs [mailto:glenn.coo...@gmail.com]
Sent: Wednesday, September 07, 2011 4:19 AM
To: David Cole
Cc: David Dunkle; cmake@cmake.org
Subject: Re: [CMake] novice question: modification of FLAGS rule variable?
What you
Is it possible to read and to set a property/rule variable like FLAGS? What
syntax would I use to do that? I mean FLAGS as it, for example, appears here:
set(CMAKE_C_COMPILE_OBJECT ${target_compiler} -c FLAGS -o OBJECT)
For example can I do something like this (this is pseudo code)?
#read
On Mon, Sep 5, 2011 at 1:31 PM, David Dunkle ddun...@arxan.com wrote:
Is it possible to read and to set a property/rule variable like FLAGS?
What syntax would I use to do that? I mean FLAGS as it, for example,
appears here:
set(CMAKE_C_COMPILE_OBJECT ${target_compiler} -c FLAGS -o OBJECT)