Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Eric Noulard
2012/1/11 Totte Karlsson :    cmake --help-variable CMAKE_CFG_INTDIR >>> >>> >>> When executing the PACKAGE target from the IDE, that variable is >>> evaluated to >>> $(Configuration) >> >> >> Not quite. CMake evaluates it to $(Configuration) (or what ever the >> particular IDE uses), which th

Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Totte Karlsson
cmake --help-variable CMAKE_CFG_INTDIR When executing the PACKAGE target from the IDE, that variable is evaluated to $(Configuration) Not quite. CMake evaluates it to $(Configuration) (or what ever the particular IDE uses), which then gets expanded by the IDE to the current configuration,

Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Michael Wild
On 01/10/2012 10:50 AM, Totte Karlsson wrote: >>> >>> 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 "

Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Eric Noulard
2012/1/10 Totte Karlsson : >>> >>> 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" in

Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Totte Karlsson
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_INT

Re: [CMake] CPack output name using VS IDE

2012-01-10 Thread Eric Noulard
2012/1/10 Totte Karlsson : > 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_T

[CMake] CPack output name using VS IDE

2012-01-10 Thread Totte Karlsson
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