From 74491922a87fdec0007b3f8ae24f0d7ec0e1a0ec Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Tue, 15 Aug 2023 16:13:44 -0400 Subject: [PATCH] [cmake] Do not find find cpp2py when PythonSupport==OFF and subproject --- deps/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 8281e7fb..f6a3b895 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -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