From 9d3af8c2025b5bd2b9095eb32728f2135aa16fe1 Mon Sep 17 00:00:00 2001 From: Wiebe van Breukelen Date: Wed, 27 Aug 2025 17:07:30 +0200 Subject: [PATCH] Fixed broken pybind11 target check (#28) * Fixed broken pybind11 target check * Update python/CMakeLists.txt Co-authored-by: Bram Veenboer --------- Co-authored-by: Bram Veenboer --- python/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 56fa0c8..0df8767 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,4 +1,6 @@ -if(NOT TARGET pybind11) +find_package(pybind11 CONFIG QUIET) + +if(NOT pybind11_FOUND) FetchContent_Declare( pybind11 GIT_REPOSITORY https://github.com/pybind/pybind11.git