[CMake] ADD_CUSTOM_COMMAND issues
Yegor Yefremov
yegor_sub1 at visionsystems.de
Mon Jul 16 03:26:46 EDT 2007
Brandon Van Every wrote:
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
I tried various permutations but in vain.
set (CMAKE_VERBOSE_MAKEFILE OFF) is the default setting. In my real
project I have ADD_CUSTOM_COMMAND call to produce source files. I can
see comment output there.
I changed my CMakeLists.txt so that I don't call ctags but create
directory using mkdir so you can try it on your Windows system.
project (TEST)
# sources
set (SRCS test.c)
# executables
add_executable (test ${SRCS})
add_custom_command (TARGET test POST_BUILD COMMAND mkdir tags COMMENT
"Creating tags" WORKING_DIRECTORY ${TEST_SOURCE_DIR})
Cheers,
Yegor Yefremov
More information about the CMake
mailing list