[CMake] Re: CMAKE_C_FLAGS per target
Rodolfo Schulz de Lima
rodolfo at rodsoft.org
Fri Dec 14 11:29:50 EST 2007
Cristian Bidea escreveu:
> Hello
>
> 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.
>
> Thank you!
I think you can set it with set_target_properties, for example:
set_target_properties(target PROPERTIES COMPILE_FLAGS -Wall)
Regards,
rod
More information about the CMake
mailing list