From 2105c6dee6a0a0e1b726012d2ce27ea5ac691bb0 Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Tue, 17 Oct 2023 06:44:24 +0000 Subject: [PATCH] Only require doxygen if docs are being built --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1c5440e3..2c23701f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,9 +36,6 @@ find_package(paraconf REQUIRED COMPONENTS C) ## Look for a pre-installed PDI find_package(PDI REQUIRED COMPONENTS C) -## Look for a pre-installed Doxygen -find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot) - ## if tests are enabled, use googletest from `vendor/` ### we use it to write unit tests if("${BUILD_TESTING}") @@ -99,7 +96,10 @@ endif() ## if documentation is enabled, build it if("${BUILD_DOCUMENTATION}") - add_subdirectory(docs/) + ## Look for a pre-installed Doxygen + find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot) + + add_subdirectory(docs/) endif() ## Turn off documentation for subpackages