[CMake] Reading flags that have been added with add_definitions

Mathias Gaunard mathias.gaunard at ens-lyon.org
Wed Apr 18 10:23:56 EDT 2012


Is there a way to read back what flags were added with add_definitions?

If I do

add_definitions(DFOO=bar -pedantic)

when I read the COMPILE_DEFINITIONS property of the directory all I have is
FOO=bar

How can I know the -pedantic option is being used for all targets in the 
directory?


More information about the CMake mailing list