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

David Dunkle ddunkle at arxan.com
Mon Sep 5 13:31:31 EDT 2011


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
set(MY_FLAGS,  ${<FLAGS>} );

...

#set
set(<FLAGS>, ${MY_FLAGS});

In the documentation, here:

http://cmake.org/Wiki/CMake_Useful_Variables#Expansion_Rules

it hints at this being possible but doesn't explain, at least not so that I understand.

Thanks,
-David



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110905/f8adbc95/attachment.htm>


More information about the CMake mailing list