From 59674b1b9a317b5bfc615dd7c454be256e53b509 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Wed, 26 Jul 2023 15:36:55 -0400 Subject: [PATCH] [cmake] Do not check doc build options as subproject --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9dd2bfa2..d1a88fb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,7 +74,7 @@ endif() # Documentation option(Build_Documentation "Build documentation" OFF) -if(Build_Documentation AND NOT PythonSupport) +if(NOT IS_SUBPROJECT AND (Build_Documentation AND NOT PythonSupport)) message(FATAL_ERROR "Build_Documentation=ON requires PythonSupport to be enabled") endif()