[CMake] No COMMENT for ADD_CUSTOM_TARGET?
Brad King
brad.king at kitware.com
Wed Jun 28 13:28:45 EDT 2006
David Somers wrote:
> Is there a reason why ADD_CUSTOM_TARGET doesn't support having a COMMENT?
It just hasn't been implemented. Whoever added it to ADD_CUSTOM_COMMAND
did not add it to ADD_CUSTOM_TARGET too. Looking at the code it may not
be a trivial change because the generators would all have to be modified
to write the extra lines for post-build commands as well as normal
custom commands. The two styles of commands are implemented quite
differently in some generators.
You may of course submit a feature request:
http://www.cmake.org/Bug
Otherwise just make the first command in the build rule
${CMAKE_COMMAND} -E echo "my comment"
-Brad
More information about the CMake
mailing list