[CMake] COMPILE_DEFINITIONS_Debug doesn't work in Windows

Vyacheslav Karamov ubuntulist at yandex.ru
Tue Apr 17 04:59:04 EDT 2012


Yes I do.
17.04.2012 11:49, Rolf Eike Beer написал:
>> 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
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>


More information about the CMake mailing list