depot/pkgs/development/libraries/librealsense/py_pybind11_no_external_download.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

15 lines
537 B
Diff

diff --git a/CMake/global_config.cmake b/CMake/global_config.cmake
index 350f7a268..2cf125c67 100644
--- a/CMake/global_config.cmake
+++ b/CMake/global_config.cmake
@@ -69,7 +69,8 @@ macro(global_set_flags)
if(BUILD_PYTHON_BINDINGS)
include(libusb_config)
- include(CMake/external_pybind11.cmake)
+ find_package(pybind11 REQUIRED)
+ set(PYTHON_INSTALL_DIR "${XXNIX_PYTHON_SITEPACKAGES}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
endif()
if(CHECK_FOR_UPDATES)