From fdfe1277ccb0cb97bf69f8d5f4b8766478fe14d4 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Wed, 26 Jul 2023 14:55:30 -0400 Subject: [PATCH] Do not build documentation for subprojects --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed2dd7aa..9dd2bfa2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,7 @@ if(PythonSupport) endif() # Docs -if(Build_Documentation) +if(NOT IS_SUBPROJECT AND Build_Documentation) add_subdirectory(doc) endif()