[CMake] Override CMAKE_BUILD_TYPE per target

Alexander Neundorf a.neundorf-work at gmx.net
Sat Dec 29 09:25:07 EST 2007


On Friday 21 December 2007, Rodolfo Schulz de Lima wrote:
> 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.

No, that's not possible.

Alex


More information about the CMake mailing list