1 2 3 4 5 6 7 8 9
include(FetchContent) FetchContent_Declare( pybind11 GIT_REPOSITORY https://github.com/pybind/pybind11.git GIT_TAG v2.13.6 # Use a stable version ) FetchContent_MakeAvailable(pybind11)