Skip to content
Snippets Groups Projects
Commit 30a9a0b6 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

Merge branch 'fix/doxygen-macro-for-cmake-greater-3.1' into 'master'

[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.

See merge request !40
parents bd8a54d5 0de0163c
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
# #
# make sure, that the doxygen links to todo list, bibliography, etc. are correct # make sure, that the doxygen links to todo list, bibliography, etc. are correct
MACRO (add_dumux_doxygen_target) MACRO (add_dumux_doxygen_target)
add_doxygen_target() if(DOXYGEN_FOUND)
add_custom_command(TARGET doxygen_${ProjectName} add_doxygen_target()
POST_BUILD add_custom_command(TARGET doxygen_${ProjectName}
COMMAND ${CMAKE_SOURCE_DIR}/doc/doxygen/sanitizelinks.sh) POST_BUILD
COMMAND ${CMAKE_SOURCE_DIR}/doc/doxygen/sanitizelinks.sh)
endif()
ENDMACRO (add_dumux_doxygen_target) ENDMACRO (add_dumux_doxygen_target)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment