summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-07 21:48:48 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-07 21:48:48 +0000
commit1e229960b1ee38adc1a41b2cc323ffbd8b7bb921 (patch)
tree781858cd5d41e0bb2b770d09ebba5191747df37e
parent26197b2171b3e1b818a521690b27f15017f9b2a7 (diff)
parent6aaf733bc33df25632700a48fd8421d43d6f42a0 (diff)
Merge cmake.3.9.fix as DOXYGEN_EXECUTABLE is deprecated in cmake 3.9
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2848 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 7ece40438a98038d3bef26878e1fd05cdd6beead
-rw-r--r--src/cmake/modules/GUDHI_doxygen_target.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmake/modules/GUDHI_doxygen_target.cmake b/src/cmake/modules/GUDHI_doxygen_target.cmake
index d2cb952d..f3e2d9f5 100644
--- a/src/cmake/modules/GUDHI_doxygen_target.cmake
+++ b/src/cmake/modules/GUDHI_doxygen_target.cmake
@@ -3,6 +3,11 @@ 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
+ 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}