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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to