[CMake] Setting COMPILE_FLAGS property on a target in only debug?
Michael Wild
themiwi at gmail.com
Sat May 5 06:34:29 EDT 2012
On 05/04/2012 10:16 PM, Robert Dailey wrote:
> I'm doing the following:
>
> set_property( TARGET ${target_name} APPEND_STRING PROPERTY
> COMPILE_FLAGS "/ZI /Gy "
> )
>
> However this applies to all configurations. I want to only set this
> compiler flag for debug builds, not release. How can I do this?
>
Can you misuse the COMPILE_DEFINITIONS_DEBUG property? Should work, IMHO.
Michael
More information about the CMake
mailing list