From bbe24980d687298d1ed07c79be926a3f3faac890 Mon Sep 17 00:00:00 2001 From: Henry <henry.korb@geo.uu.se> Date: Tue, 9 May 2023 14:06:18 +0200 Subject: [PATCH] fetch pybind with cmake --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d0dbf22f..eda47aaa5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,9 +219,19 @@ if(BUILD_VF_GPU) endif() if (BUILD_VF_PYTHON_BINDINGS) - add_subdirectory(${VF_THIRD_DIR}/pybind11/pybind11-2.6.0) + set(pybind_version "v2.10.4") + set(pybind_url "https://github.com/pybind/pybind11") + message(STATUS "Fetching pybind: ${pybind_version}") + FetchContent_Declare( + pybind11 + GIT_REPOSITORY ${pybind_url} + GIT_TAG ${pybind_version} + OVERRIDE_FIND_PACKAGE + ) + + find_package(pybind11) add_subdirectory(pythonbindings) endif() -vf_load_user_apps() \ No newline at end of file +vf_load_user_apps() -- GitLab