Skip to content

Commit 27a1b4d

Browse files
Fixed build of API documentation
1 parent ad2d865 commit 27a1b4d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ endif()
212212
#find_package(XMLRPC)
213213
find_package(ZLIB)
214214
find_package(LibXml2)
215-
find_package(Doxygen)
216215
#find_package(SWIG)
217216
#find_package(TCL)
218217
#find_package(LATEX)

doc/doxygen/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
# For further information, see <http://www.nexusformat.org>
2424
#
2525
#=============================================================================
26+
include(FindDoxygen)
2627

27-
if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
28+
if (DOXYGEN_FOUND)
2829

2930
SET(SOURCES Doxyfile_c Doxyfile_cpp Doxyfile_f90 Doxyfile_f77 preamble.h)
3031
set_directory_properties(PROPERTIES
@@ -108,5 +109,7 @@ if (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
108109
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake")
109110
add_dependencies(install-html html)
110111

111-
endif (DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
112+
else()
113+
message(STATUS "Cannot find doxygen - no API documentation will be built!")
114+
endif ()
112115

0 commit comments

Comments
 (0)