[CMake] Intermediate directory

gekso ev.93kso at gmail.com
Fri May 13 08:46:50 EDT 2011


CMAKE_BUILD_TYPE - That's what I want for my linux part. And it adds
nothing on windows, so it's ok.
My problem is to change Intermediate directory and message
(${CMAKE_CFG_INTDIR}) returns "$(Configuration)" to output..


2011/5/13 Michael Wild <themiwi at gmail.com>:
> On 05/13/2011 02:26 PM, gekso wrote:
>> Hi! I use VS2010 generator. When I'm setting
>> set_target_properties (${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
>> ${CMAKE_BINARY_DIR}/__bin/${CMAKE_BUILD_TYPE}
>>
>> I have in output project file such lines:
>>      <OutDir Condition="'$(Configuration)|$(Platform)'=='release|Win32'">__bin\release\</OutDir>
>>      <IntDir Condition="'$(Configuration)|$(Platform)'=='release|Win32'">target.dir\release\</IntDir>
>>
>> How I can change path to IntDir? I need to set something like "_obj\release"...
>> Thanks!
>
>
> CMAKE_BUILD_TYPE is only of relevance for single-config generators, such
> as GNU Makefile. You'll want to look into the CMAKE_CFG_INTDIR variable.
>
> 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
>


More information about the CMake mailing list