I have a vs2008 project. His project files are created using CMake. What I want to do is define the libraries and library directories for the Debug and Release target independently, that is, release the libraries for the target version of the release and debug the libraries for the debug purpose, of course.
So far, I have no idea how to do this. I know that I can define different compiler arguments with CMAKE_CXX_FLAGS_DEBUG and CMAKE_CXX_FLAGS_RELEASE , for example (or, however, assembly target names), but I have no idea how to do this for dirs and libs links.
The person who created the CMakeLists file with all the definitions tried it with
IF( CMAKE_BUILD_TYPE MATCHES "Debug" )
but it does not work. According to some CMake wiki, the CMAKE_BUILD_TYPE variable is not defined at setup time, only at run time, depending on what purpose you are using, of course.
Right now I'm kinda like a dead end and would be grateful for any hints or directions :).
visual-studio-2008 cmake
fritzmg
source share