[cmake] Do not find find cpp2py when PythonSupport==OFF and subproject

This commit is contained in:
Nils Wentzell 2023-08-15 16:13:44 -04:00
parent c08a0923f4
commit 74491922a8
1 changed files with 1 additions and 1 deletions

2
deps/CMakeLists.txt vendored
View File

@ -48,7 +48,7 @@ else()
endif()
# -- Cpp2Py --
if(PythonSupport OR Build_Documentation)
if(PythonSupport OR (NOT IS_SUBPROJECT AND Build_Documentation))
external_dependency(Cpp2Py
GIT_REPO https://github.com/TRIQS/cpp2py
VERSION 2.0