Dear all,
in our project we have two sets of documentation, which are each their own
custom target:
Framework/Doc/CMakeLists.txt:
add_custom_target(FrameworkDoc
${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
Application/Doc/CMakeLists.txt:
add_custom_target(doc
${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
As building the documentation takes quite some time neither is part of the
ALL target. With the above configuration building works as expected, each
has to be build manually and the build works. However, the doc target needs
the .tag file which is generated as part of FrameworkDoc. If I add a
dependency:
add_custom_target(doc
${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS FrameworkDoc
)
the FrameworkDoc target is being build every time I build the ALL target,
instead of only if I build the doc target.
I this behaviour intentional? Am I missing some option I should be using?
Any advice is appreciated,
Caspar
--
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