[CMake] Overriding CMAKE_C_FLAGS on a per-directory basis

C. Meissa carsten.meissa at gmx.de
Tue Jan 12 05:39:45 EST 2010


Hello,

Am Freitag, 8. Januar 2010 schrieb Marcel Loose:
> If you've set the flags "-foo -bar" using add_definitions(), instead of
> manipulating CMAKE_C_FLAGS directly, you can use
>
>   set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "-baz")

Currently I manually set CMAKE_Fortran_FLAGS_DEBUG where DEBUG is set inside
CMAKE_BUILD_TYPE

Does this add_definitions()-technique keep track of the build type?

thx
C.M.


More information about the CMake mailing list