summaryrefslogtreecommitdiff
path: root/cmake/modules/GUDHI_doxygen_target.cmake
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2018-09-09 05:51:46 +0200
committerGard Spreemann <gspreemann@gmail.com>2018-09-09 05:51:46 +0200
commit75d365e9df3b9c25f48a475a53188668b5cd2951 (patch)
tree3906301decc85aeaedf90e140550f5836a6e7fac /cmake/modules/GUDHI_doxygen_target.cmake
parent41482b4260b4aff3d6803e340d5c94fbefb9af67 (diff)
parentef5c01b599c6a6b23b1f3e92736ec67a6e62b55f (diff)
Merge branch 'upstream/latest' into dfsg/latest
Diffstat (limited to 'cmake/modules/GUDHI_doxygen_target.cmake')
-rw-r--r--cmake/modules/GUDHI_doxygen_target.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/modules/GUDHI_doxygen_target.cmake b/cmake/modules/GUDHI_doxygen_target.cmake
index f3e2d9f5..9e10e566 100644
--- a/cmake/modules/GUDHI_doxygen_target.cmake
+++ b/cmake/modules/GUDHI_doxygen_target.cmake
@@ -3,14 +3,17 @@ find_package(Doxygen)
if(DOXYGEN_FOUND)
# configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
- #starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
+ # starting from cmake 3.9 the usage of DOXYGEN_EXECUTABLE is deprecated
if(TARGET Doxygen::doxygen)
get_property(DOXYGEN_EXECUTABLE TARGET Doxygen::doxygen PROPERTY IMPORTED_LOCATION)
endif()
add_custom_target(doxygen ${DOXYGEN_EXECUTABLE} ${GUDHI_USER_VERSION_DIR}/Doxyfile
WORKING_DIRECTORY ${GUDHI_USER_VERSION_DIR}
- DEPENDS ${GUDHI_USER_VERSION_DIR}/Doxyfile ${GUDHI_DOXYGEN_DEPENDENCY}
COMMENT "Generating API documentation with Doxygen in ${GUDHI_USER_VERSION_DIR}/doc/html/" VERBATIM)
+ if(TARGET user_version)
+ # In dev version, doxygen target depends on user_version target. Not existing in user version
+ add_dependencies(doxygen user_version)
+ endif()
endif(DOXYGEN_FOUND)