[cmake-developers] Chaining custom commands in VS 2010

Brad King brad.king at kitware.com
Tue Mar 5 10:27:36 EST 2013


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:

 >echo Input 1 >in1.txt
 >echo Input 2 >in2.txt
 >echo Input 3 >in3.txt
 >msbuild test.vcxproj
 CustomBuild:
   CustomBuild in1.txt to out1.txt
   CustomBuild in2.txt to out2.txt
   CustomBuild out1.txt + out2.txt to out3.txt

 >msbuild test.vcxproj
 CustomBuild:
   All outputs are up-to-date.

 >echo Input 1 >in1.txt
 >msbuild test.vcxproj
 CustomBuild:
   CustomBuild in1.txt to out1.txt

 >msbuild test.vcxproj
 CustomBuild:
   CustomBuild out1.txt + out2.txt to out3.txt

 >msbuild test.vcxproj
 CustomBuild:
   All outputs are up-to-date.

 >echo Input 2 >in2.txt
 >msbuild test.vcxproj
 CustomBuild:
   CustomBuild in2.txt to out2.txt
   CustomBuild out1.txt + out2.txt to out3.txt

Note that the second case works correctly.  If I switch the order
of the CustomBuild elements for in1.txt and in2.txt in test.vcxproj
then the behavior switches to work correctly in the first case but
not the second.

Can you bring this up in a MS support forum?

-Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.vcxproj
Type: text/xml
Size: 2389 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130305/d9edda8c/attachment.xml>


More information about the cmake-developers mailing list