I’am using CMake to create a Visual Studio 2008 project. In this project I need to create a new configuration, called UnitaryTests. So, in CMakeLists.txt I put the line
set(CMAKE_CONFIGURATION_TYPES "Release;Debug;UnitaryTest" CACHE STRING "Configurations" FORCE)
Later in the CMakeLists.txt file there is the following line:
target_link_libraries( ${PROJECT_NAME} ${ASTEK_LIBRARIES} )
to link with an external package. The variable ASTEK_LIBRARIES contains a text like:
debug;debug/libs;optimized;release/libs
My problem is that I must force the new configuration to only use the debug version of this package (currently it is using the release version). Do you know how to do this?
Note: it is not me that fill the variable ASTEK_LIBRARIES. It is created by a corporate script that I cannot change.
Thanks for your help.
Use:
If you also have
RelWithDebInfodefined, this would belong in here too.For further info run: