[CMake] Cmake configuration types and install targets
Brad King
brad.king at kitware.com
Fri Feb 10 14:30:56 EST 2006
Sylvain PRAT wrote:
> - how do you force configuration types in a CMakeLists.txt file to debug
> and release only? I seem to recall that this is not possible. Right?
IF(CMAKE_CONFIGURATION_TYPES)
SET(CMAKE_CONFIGURATION_TYPES Debug Release)
ENDIF(CMAKE_CONFIGURATION_TYPES)
> - or how to avoid the duplicate copy? That is, how could i just install
> the release library and not the relwithdebuginfo nor minsizerel libraries?
> - or do you know a workaround so i could copy my release and debug
> libraries out of their respective debug/ and release/ folders with
> visual c++?
SET(CMAKE_DEBUG_POSTFIX _some_postfix)
will build the debug libraries with a different name.
-Brad
More information about the CMake
mailing list