3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00

[cmake] Do not check doc build options as subproject

This commit is contained in:
Nils Wentzell 2023-07-26 15:36:55 -04:00
parent fdfe1277cc
commit 59674b1b9a

View File

@ -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()