[cmake-developers] Chaining custom commands in VS 2010

James Bigler jamesbigler at gmail.com
Tue Oct 21 17:09:18 EDT 2014


I never did actually submit this bug.  Do you know if this is a problem for
VS 2013?

We are running into this more and more with chains of custom commands in
CMake being processed incorrectly by VS.  It's to the point we are going to
have to generate a separate configuration (e.g. nmake or makefile) just to
compile these rules.

On Tue, Mar 5, 2013 at 11:10 AM, Brad King <brad.king at kitware.com> wrote:

> 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>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141021/de3f35fb/attachment-0002.html>


More information about the cmake-developers mailing list