From e31baee042af133a6b6b08404a7c59155233fcd9 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Mon, 5 Apr 2021 13:50:50 -0500 Subject: [PATCH] Don't build documentation unless I want it --- core/CMakeLists.txt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index a075026..e693e6f 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -99,8 +99,11 @@ target_link_libraries(couchlib ${BULLET_LIBRARIES}) target_link_libraries(couchlib ${ASSIMP_LIBRARY}) ## Add documentation -find_package(Doxygen REQUIRED - OPTIONAL_COMPONENTS dot mscgen dia) -doxygen_add_docs(couchdocs - . - mainpage.dox) +option(BUILD_DOCUMENTATION "Build the Doxygen documentation" OFF) +if(BUILD_DOCUMENTATION) + find_package(Doxygen REQUIRED + OPTIONAL_COMPONENTS dot mscgen dia) + doxygen_add_docs(couchdocs + . + mainpage.dox) +endif()