[CMake] CMake for Visual and BUILD_TYPE
Xavier Larrodé
xlarrode at gmail.com
Thu Sep 17 01:55:29 EDT 2009
Hi all, I'm using cmake on linux for 2 years now, and i have some question
now that i have to convert my project for visual
On linux i always use the command CMAKE_BUILD_TYPE to set the binary dir.
But on windows, even if a project is set with cmake as Build Debug, it
generates the Release cmake project too.
So When compiling in release , the CMAKE_BUILD_TYPE is set to Debug.
So things like that are not working :
IF(CMAKE_BUILD_TYPE MATCHES Debug)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib/Debug)
ELSE(CMAKE_BUILD_TYPE MATCHES Debug)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib/Release)
ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)
So how can i detect that i'm on release on windows ?
PS: i'm using the latest release of cmake 2.4
Thanks
Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090917/07001abb/attachment.htm>
More information about the CMake
mailing list