[CMake] CPack output name using VS IDE

Totte Karlsson totte at dunescientific.com
Tue Jan 10 04:50:08 EST 2012


>>
>> But when executing the PACKAGE target, from within VS IDE, the
>> ${CMAKE_BUILD_TYPE} does not seem to be set.
>
> VS IDE or XCode do not set this because they are able to handle
> several config at once.

yes.

> You may try to use "CMAKE_CFG_INTDIR" instead.
> See:
>    cmake --help-variable CMAKE_CFG_INTDIR

When executing the PACKAGE target from the IDE, that variable is evaluated to
$(Configuration)

Still don't get how to get the actual 'configuration' string, i.e. Debug/Release 
etc, when executing the PACKAGE target in visual studio.

totte


More information about the CMake mailing list