[CMake] CPack output name using VS IDE

Eric Noulard eric.noulard at gmail.com
Tue Jan 10 03:50:06 EST 2012


2012/1/10 Totte Karlsson <totte at dunescientific.com>:
> 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


More information about the CMake mailing list