[CMake] Intermediate directory

Michael Wild themiwi at gmail.com
Fri May 13 08:34:10 EDT 2011


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



More information about the CMake mailing list