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