[CMake] Override CMAKE_BUILD_TYPE per target

Rodolfo Schulz de Lima rodolfo at rodsoft.org
Fri Dec 21 15:46:07 EST 2007


Is there a way to override CMAKE_BUILD_TYPE per target?
For instance, I'd like to write:

set_target_properties(target PROPERTIES BUILD_TYPE Release)

And have my target compiled in Release mode regardless of the current value 
of CMAKE_BUILD_TYPE.

Regards,
rod 




More information about the CMake mailing list