[CMake] No COMMENT for ADD_CUSTOM_TARGET?

David Somers dsomers at omz13.com
Wed Jun 28 14:42:44 EDT 2006


On Wednesday 28 June 2006 19:28, Brad King wrote:
> 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.

OK. I just found it a slight oddity in that it was implemented for one command 
and not the other.

> You may of course submit a feature request:
>
> http://www.cmake.org/Bug

Will do.

> Otherwise just make the first command in the build rule
>
> ${CMAKE_COMMAND} -E echo "my comment"

Sure.

-- 
David Somers


More information about the CMake mailing list