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

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, i.e. Debug, Release, etc.


Michael
--

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