[CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows
Rolf Eike Beer
eike at sf-mail.de
Tue Apr 17 04:49:16 EDT 2012
> It also doesn't work
>
> set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG
> "USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T")
>
> set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE
> "USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T")
Did you use that code before the add_executable() or add_library()?
Eike
More information about the CMake
mailing list