Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-08 Thread Glenn Coombs
, 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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-08 Thread David Dunkle
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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-08 Thread Glenn Coombs
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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-08 Thread David Dunkle
...@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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-07 Thread Glenn Coombs
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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-07 Thread David Dunkle
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

[CMake] novice question: modification of FLAGS rule variable?

2011-09-05 Thread David Dunkle
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

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-05 Thread David Cole
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)