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
_______________________________________________ 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