summaryrefslogtreecommitdiff
path: root/src/cmake/modules/GUDHI_doxygen_target.cmake
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-08-07 09:06:43 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-08-07 09:06:43 +0000
commitd928271fb9f95af18e51f9f8b43493f2bd8aaf8e (patch)
tree9512c60550ce6e3b662d1baf9e823397351dffff /src/cmake/modules/GUDHI_doxygen_target.cmake
parenta610de53767795b03fed00a6ab8348ec69bd650e (diff)
Remove if cmake version in GUDHI_user_version_target
doxygen target is depending on user_version only if defined (defined in dev version, but not on user version) git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ninja_cmake_warning_fix_vincent@3747 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 2e9533581d7b9ec231b27b7c405dd3817baf4911
Diffstat (limited to 'src/cmake/modules/GUDHI_doxygen_target.cmake')
-rw-r--r--src/cmake/modules/GUDHI_doxygen_target.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmake/modules/GUDHI_doxygen_target.cmake b/src/cmake/modules/GUDHI_doxygen_target.cmake
index f3e2d9f5..9e10e566 100644
--- a/src/cmake/modules/GUDHI_doxygen_target.cmake
+++ b/src/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)