Hi all, <div>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<br clear="all"><br>On linux i always use the command CMAKE_BUILD_TYPE to set the binary dir.
</div><div>But on windows, even if a project is set with cmake as Build Debug, it generates the Release cmake project too.</div><div>So When compiling in release , the CMAKE_BUILD_TYPE is set to Debug.</div><div><br></div>
<div>So things like that are not working : </div><div><div> IF(CMAKE_BUILD_TYPE MATCHES Debug)</div><div> INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib/Debug)</div><div> ELSE(CMAKE_BUILD_TYPE MATCHES Debug)</div><div>
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib/Release)</div><div> ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)</div><div><br></div><div>So how can i detect that i'm on release on windows ? </div><div><br></div><div>PS: i'm using the latest release of cmake 2.4</div>
<div>Thanks</div><div><br></div><div>Xavier</div></div>