MantisBT - CMake
View Issue Details
0014307CMakeCMakepublic2013-07-24 05:222013-12-02 08:51
ycollet 
 
normalfeaturealways
closedwon't fix 
CMake 2.8.9 
 
0014307: add a COMMENT option for execute_process
A COMMENT option for execute_process should be nice.

To do things like:

execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/test ${CMAKE_BINARY_DIR}/test
                COMMENT "Copying test into build directory")

No tags attached.
Issue History
2013-07-24 05:22ycolletNew Issue
2013-07-24 09:44Brad KingNote Added: 0033586
2013-07-24 09:44Brad KingStatusnew => resolved
2013-07-24 09:44Brad KingResolutionopen => won't fix
2013-12-02 08:51Robert MaynardNote Added: 0034653
2013-12-02 08:51Robert MaynardStatusresolved => closed

Notes
(0033586)
Brad King   
2013-07-24 09:44   
This is completely unnecessary. Just use message:

message(STATUS "Copying test into build directory")
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/test ${CMAKE_BINARY_DIR}/test)

The reason add_custom_command has a COMMENT option is because that doesn't run the command but instead adds it to the generated build system, and the project files have a spot for a comment.
(0034653)
Robert Maynard   
2013-12-02 08:51   
Closing resolved issues that have not been updated in more than 4 months.