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 _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
