1 diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt
2 index af3a28c113..ba92c3c55e 100644
3 --- a/cmake/dependencies/CMakeLists.txt
4 +++ b/cmake/dependencies/CMakeLists.txt
5 @@ -177,9 +177,8 @@ if(BUILD_PYTHON AND BUILD_pybind11_protobuf)
6 list(APPEND CMAKE_MESSAGE_INDENT " ")
9 - GIT_REPOSITORY "https://github.com/pybind/pybind11_protobuf.git"
11 - PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_protobuf.patch"
12 + SOURCE_DIR @pybind11_protobuf@
13 + PATCH_COMMAND patch -p1 < "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_protobuf.patch"
15 FetchContent_MakeAvailable(pybind11_protobuf)
16 list(POP_BACK CMAKE_MESSAGE_INDENT)