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