[CMake] CMAKE_C_FLAGS per target

Hendrik Sattler post at hendrik-sattler.de
Sun Dec 16 15:58:58 EST 2007


Am Freitag 14 Dezember 2007 schrieb Cristian Bidea:
> Is it possible to set some C_FLAGS per target?! I know about the
> global variable CMAKE_C_FLAGS but I don't need all the flags for all
> the targets in the project.

You can have COMPILE_FLAGS per source file (SET_SOURCE_FILES_PROPERTIES) and 
for all files of a target (SET_TARGET_PROPERTIES).

HS


More information about the CMake mailing list