From 3d48a1d34494fb12de4823707082d2bf1b55c6a3 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 14 Apr 2020 09:15:26 +0200 Subject: [PATCH] changed: check for pre-existing pybind11 target this is necessary to allow building all modules in a 'super-build' --- python/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index a8d80b0c1..c57487c72 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,2 +1,3 @@ -add_subdirectory( pybind11 ) - +if(NOT TARGET pybind11) + add_subdirectory( pybind11 ) +endif()