[cmake-developers] Chaining custom commands in VS 2010

Brad King brad.king at kitware.com
Tue Mar 5 13:10:38 EST 2013


On 03/05/2013 10:27 AM, Brad King wrote:
> On 12/04/2012 07:30 PM, James Bigler wrote:
>> Is there something CMake can do to correct this error/bug with VS 2010?
> 
> I've narrowed this case down to a single hand-written test.vcxproj
> file with no connection to CMake.  Here is a session:

This also happens with VS 2012.  I modified the .vcxproj file with
the patch below and ran msbuild with the "/p:VisualStudioVersion=11.0"
option.  Otherwise the session is the same.

-Brad

@@ -12,6 +12,7 @@
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
     <ConfigurationType>Utility</ConfigurationType>
+    <PlatformToolset>v110</PlatformToolset>
   </PropertyGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
   <PropertyGroup>



More information about the cmake-developers mailing list