From 8846e8807e6bd9f57ab3a729f0577b824f5acd70 Mon Sep 17 00:00:00 2001 From: Henry <henry.korb@geo.uu.se> Date: Tue, 9 May 2023 16:01:57 +0200 Subject: [PATCH] use FetchContent_MakeAvailable instead of find_package --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eda47aaa5..e7f62a5ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -226,10 +226,9 @@ if (BUILD_VF_PYTHON_BINDINGS) pybind11 GIT_REPOSITORY ${pybind_url} GIT_TAG ${pybind_version} - OVERRIDE_FIND_PACKAGE ) - find_package(pybind11) + FetchContent_MakeAvailable(pybind11) add_subdirectory(pythonbindings) endif() -- GitLab