[CMake] Curious build output

Yuri Timenkov yuri at timenkov.ru
Wed Oct 5 23:55:52 EDT 2011


It's because VS2010 uses msbuild to build C++ projects. You can modify
verbosity level in settings menu: Tools > Options > Projects and Solutions >
Build and Run > MSBuild project build output verbosity

On Wed, Oct 5, 2011 at 10:49 PM, James Bigler <jamesbigler at gmail.com> wrote:

> What is this extra chatty output from?  I never remember seeing it in VS
> 2008, but I see it in VS 2010.
>
> >------ Build started: Project: copy_scripts, Configuration: Release x64
> ------
> 1>Build started 10/5/2011 12:38:07 PM.
> 1>InitializeBuildStatus:
> 1>  Creating "x64\Release\copy_scripts\copy_scripts.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
> 1>FinalizeBuildStatus:
> 1>  Deleting file
> "x64\Release\copy_scripts\copy_scripts.unsuccessfulbuild".
> 1>  Touching "x64\Release\copy_scripts\copy_scripts.lastbuildstate".
> 1>
> 1>Build succeeded.
>
> 3>------ Build started: Project: ALL_BUILD, Configuration: Release x64
> ------
> 3>Build started 10/5/2011 12:38:08 PM.
> 3>InitializeBuildStatus:
> 3>  Creating "x64\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because
> "AlwaysCreate" was specified.
> 3>CustomBuild:
> 3>  Build all projects
> 3>FinalizeBuildStatus:
> 3>  Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".
> 3>  Touching "x64\Release\ALL_BUILD\ALL_BUILD.lastbuildstate".
> 3>
> 3>Build succeeded.
>
> I'm using VS 2010 and CMake 2.8.6 (2.8.5 also did this).
>
> 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.
>
> Hmm... I wonder if this is related to the bug where we removed the
> %(Outputs) from the Outputs field.
>
>
> 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)
>
> I removed the $(AdditionalInputs), and that didn't seem to make a
> difference.
>
> One thing that is curious is that I have this for the Outputs field, but
> that doesn't exist anywhere:
>
> C:\code\rtsdk\rtmain\build-64-vs10-c40\tests\Regression\scripts\CMakeFiles\copy_scripts
>
> 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.
>
> This is what I used to create this target:
>
> foreach( script ${scripts} )
>   set( src  "${CMAKE_CURRENT_SOURCE_DIR}/${script}" )
>   set( dest "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${script}" )
>   list( APPEND dest_files "${dest}" )
>   add_custom_command(
>     OUTPUT "${dest}"
>     COMMAND ${CMAKE_COMMAND} -E copy "${src}" "${dest}"
>     MAIN_DEPENDENCY "${src}"
>     COMMENT "Copying ${src} to ${dest}"
>     VERBATIM
>   )
> endforeach()
>
> add_custom_target( copy_scripts
>   ALL
>   DEPENDS ${dest_files}
>   )
>
> Note that I have the same problem with the ALL_BUILD target.
>
> James
>
> --
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111006/ae1935bf/attachment.htm>


More information about the CMake mailing list