[CMake] ADD_CUSTOM_COMMAND issues

Brandon Van Every bvanevery at gmail.com
Fri Jul 13 11:27:35 EDT 2007


On 7/13/07, Yegor Yefremov <yegor_sub1 at visionsystems.de> wrote:
>
> # executables
> add_executable (test ${SRCS})
> add_custom_command (TARGET test POST_BUILD COMMAND ctags -R
> WORKING_DIRECTORY ${TEST_SOURCE_DIR} COMMENT "Creating tags" VERBATIM)

Does changing the order of COMMAND, WORKING_DIRECTORY, and COMMENT
affect the output in any way?  I wonder if it's possible you could be
having a verbatim command of "ctags -R WORKING DIRECTORY
${TEST_SOURCE_DIR} COMMENT" or some weirdness like that.  It would
explain why you don't get a working directory or a comment.  Also, try
it without VERBATIM and see what happens.

What is the output of "make VERBOSE=1" on a clean build?  Oh, and get
rid of this please:

# some parameters
set (CMAKE_VERBOSE_MAKEFILE OFF)

Does that command turn off comments?


Cheers,
Brandon Van Every


More information about the CMake mailing list