Made CMake look for mscgen
Before the path in doxyfile was static and set to "D:/Programmes/mscgen", which obviously won't work on most systems. Now CMake tries to find the tool. If this fails, the path is set empty to let Doxygen look for it inside PATH.
This commit is contained in:
parent
a39d36e0db
commit
617c3b7759
2 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,7 @@ if(MACOSX)
|
|||
|
||||
set(CMAKE_PROGRAM_PATH ${CMAKE_PROGRAM_PATH} ${ADDITIONAL_PATHS})
|
||||
endif()
|
||||
|
||||
find_package(Doxygen REQUIRED)
|
||||
|
||||
# set the input and output documentation paths
|
||||
|
@ -35,6 +36,11 @@ else()
|
|||
set(DOXYGEN_GENERATE_HTMLHELP NO)
|
||||
endif()
|
||||
|
||||
find_path(MSCGEN_PATH mscgen.exe mscgen)
|
||||
if(NOT MSCGEN_PATH)
|
||||
set(MSCGEN_PATH "")
|
||||
endif()
|
||||
|
||||
# configure the source Doxyfile by copying it and replacing all @variables@
|
||||
set(DOXYGEN_CONFIGURED_INPUT ${DOXYGEN_OUTPUT_DIR}/doxyfile)
|
||||
configure_file(${DOXYGEN_INPUT_DIR}/doc/doxyfile.in ${DOXYGEN_CONFIGURED_INPUT} @ONLY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue