What is this extra chatty output from? I never remember seeing it in VS 2008, but I see it in VS 2010.<br><br>>------ Build started: Project: copy_scripts, Configuration: Release x64 ------<br>1>Build started 10/5/2011 12:38:07 PM.<br>
1>InitializeBuildStatus:<br>1> Creating "x64\Release\copy_scripts\copy_scripts.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>1>FinalizeBuildStatus:<br>1> Deleting file "x64\Release\copy_scripts\copy_scripts.unsuccessfulbuild".<br>
1> Touching "x64\Release\copy_scripts\copy_scripts.lastbuildstate".<br>1><br>1>Build succeeded.<br><br>3>------ Build started: Project: ALL_BUILD, Configuration: Release x64 ------<br>3>Build started 10/5/2011 12:38:08 PM.<br>
3>InitializeBuildStatus:<br>3> Creating "x64\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>3>CustomBuild:<br>3> Build all projects<br>3>FinalizeBuildStatus:<br>
3> Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".<br>3> Touching "x64\Release\ALL_BUILD\ALL_BUILD.lastbuildstate".<br>3><br>3>Build succeeded.<br><br>I'm using VS 2010 and CMake 2.8.6 (2.8.5 also did this).<br>
<br>When I click "build solution" it always seems to run this, as if VS thinks that the dependencies aren't met and decides to build it.<br>
<br>Hmm... I wonder if this is related to the bug where we removed the %(Outputs) from the Outputs field.<br><br>C:/code/rtsdk/rtmain/build-64-vs10-c40/tests/Regression/scripts/CMakeFiles/copy_scripts.rule;C:\code\rtsdk\rtmain\build-64-vs10-c40\bin\correctness.rb;C:\code\rtsdk\rtmain\build-64-vs10-c40\bin\performance.rb;C:\code\rtsdk\rtmain\build-64-vs10-c40\bin\run_tests.rb;C:\code\rtsdk\rtmain\build-64-vs10-c40\bin\test_cases.rb;%(AdditionalInputs)<br>
<br>I removed the $(AdditionalInputs), and that didn't seem to make a difference.<br><br>One thing that is curious is that I have this for the Outputs field, but that doesn't exist anywhere:<br>C:\code\rtsdk\rtmain\build-64-vs10-c40\tests\Regression\scripts\CMakeFiles\copy_scripts<br>
<br>How is it that we have a build rule that says it generates a particular output, but the output isn't generated by the rule.<br><br>This is what I used to create this target:<br><br><span style="font-family: courier new,monospace;">foreach( script ${scripts} )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> set( src "${CMAKE_CURRENT_SOURCE_DIR}/${script}" )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> set( dest "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${script}" )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> list( APPEND dest_files "${dest}" )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> add_custom_command( </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> OUTPUT "${dest}"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> COMMAND ${CMAKE_COMMAND} -E copy "${src}" "${dest}"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> MAIN_DEPENDENCY "${src}"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> COMMENT "Copying ${src} to ${dest}"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> VERBATIM</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">endforeach()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">add_custom_target( copy_scripts</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ALL</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> DEPENDS ${dest_files}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> )</span><br style="font-family: courier new,monospace;">
<br>Note that I have the same problem with the ALL_BUILD target.<br><br>James<br>