diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d0dbf22fd98c2f6ac0cb417b2fe900f775bfa55..eda47aaa5f13e413ed0b0b56b34e7029e2104a23 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()