From 1c577beb129162f4ce94b2bb38476e9ce1e38f27 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Wed, 13 Jan 2016 10:00:01 +0100 Subject: [PATCH] [doxygen] Add target only if doxygen was found The dune macro used to add the target only adds it if doxygen was found. Then the target was not know in add_custom_command which is an error in CMake > v3.2. --- cmake/modules/DumuxDoxygen.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/DumuxDoxygen.cmake b/cmake/modules/DumuxDoxygen.cmake index ae4a0fa9c8..c2afd80838 100644 --- a/cmake/modules/DumuxDoxygen.cmake +++ b/cmake/modules/DumuxDoxygen.cmake @@ -2,8 +2,10 @@ # # make sure, that the doxygen links to todo list, bibliography, etc. are correct MACRO (add_dumux_doxygen_target) +if(DOXYGEN_FOUND) add_doxygen_target() add_custom_command(TARGET doxygen_${ProjectName} POST_BUILD COMMAND ${CMAKE_SOURCE_DIR}/doc/doxygen/sanitizelinks.sh) +endif() ENDMACRO (add_dumux_doxygen_target) -- GitLab