aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-07 16:36:39 +0200
committerThomas White <taw@physics.org>2019-05-07 16:37:21 +0200
commitbf602577aa55c0adcbf6b79021d40d2456119bed (patch)
treef94486a605dcb17afebea303f7c26451dd905cc5 /libcrystfel/CMakeLists.txt
parent6b81df8c6f9621bde69ae506dc8b43374193635c (diff)
Don't try to build API docs unless DOXYGEN_FOUND
Diffstat (limited to 'libcrystfel/CMakeLists.txt')
-rw-r--r--libcrystfel/CMakeLists.txt16
1 files changed, 9 insertions, 7 deletions
diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt
index f132c3a0..55c2c0f5 100644
--- a/libcrystfel/CMakeLists.txt
+++ b/libcrystfel/CMakeLists.txt
@@ -114,13 +114,15 @@ set(LIBCRYSTFEL_HEADERS
src/rational.h
)
-configure_file(${PROJECT_SOURCE_DIR}/doc/index.md index.md)
-set(DOXYGEN_SHOW_INCLUDE_FILES NO)
-set(DOXYGEN_WARN_IF_UNDOCUMENTED NO)
-set(DOXYGEN_PREDEFINED HAVE_FFTW)
-doxygen_add_docs(api-docs ${PROJECT_SOURCE_DIR}/src
- ${CMAKE_CURRENT_BINARY_DIR}/index.md
- ${PROJECT_SOURCE_DIR}/doc/coding.md)
+if (DOXYGEN_FOUND)
+ configure_file(${PROJECT_SOURCE_DIR}/doc/index.md index.md)
+ set(DOXYGEN_SHOW_INCLUDE_FILES NO)
+ set(DOXYGEN_WARN_IF_UNDOCUMENTED NO)
+ set(DOXYGEN_PREDEFINED HAVE_FFTW)
+ doxygen_add_docs(api-docs ${PROJECT_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}/index.md
+ ${PROJECT_SOURCE_DIR}/doc/coding.md)
+endif (DOXYGEN_FOUND)
add_library(${PROJECT_NAME} SHARED
${LIBCRYSTFEL_SOURCES}