Hi,
Does CMake custom_command rebuild the output file if the dependency files
change? Seems like it should but I can't get it to work.
The CMake command is written like this:
add_custom_command(
OUTPUT ${ OUTPUT_FILE}
COMMAND ${CMAKE_COMMAND} ARGS -E make_directory
${ OUTPUT_DIR}
COMMAND ${ BINARY} ARGS -output=${ OUTPUT_FILE}
DEPENDS ${ INPUT_FILES}
WORKING_DIRECTORY ${WORK_DIR}
COMMENT "Generating stuff..."
)
Is my custom_command badly written? The output gets properly generated the
first time we build, but when we change the dependency files it doesn't. So
far, the only way we got it to rebuild was to delete the output file.
Thanks!
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers