2012/1/10 Totte Karlsson <[email protected]>:
> Hi,
> I want my Install package from CPack to have Debug or Release in its name.
> In my CMake file I have
> set(CPACK_PACKAGE_NAME
>                    "MyPackage-${CMAKE_BUILD_TYPE}")
>
> 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.

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

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--

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