[CMake] configuration specific ADD_CUSTOM_COMMAND

Zschocke, Florian Florian.Zschocke at cycos.com
Tue Mar 11 11:54:45 EDT 2008


> Yes just use something like:
> 
> IF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" )
> 
> ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" )

For generation Makefiles this could work. But what about MSVS project
files? My understanding was that this wouldn't work since the
CMAKE_BUILD_TYPE will not be used in multi-configuration environments.

Regards,
Florian




More information about the CMake mailing list