Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / librealsense / py_sitepackage_dir.patch
blob99b567a429ed20851edfa2068eed2ff48350feb2
1 --- a/wrappers/python/CMakeLists.txt
2 +++ b/wrappers/python/CMakeLists.txt
3 @@ -10,11 +10,11 @@
4 if (CMAKE_VERSION VERSION_LESS 3.12)
5 find_package(PythonInterp REQUIRED)
6 find_package(PythonLibs REQUIRED)
7 - set(PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
8 + set(PYTHON_INSTALL_DIR "${XXNIX_PYTHON_SITEPACKAGES}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
9 set(CMAKECONFIG_PY_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/pyrealsense2")
10 else()
11 find_package(Python REQUIRED COMPONENTS Interpreter Development)
12 - set(PYTHON_INSTALL_DIR "${Python_SITEARCH}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
13 + set(PYTHON_INSTALL_DIR "${XXNIX_PYTHON_SITEPACKAGES}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
14 set(CMAKECONFIG_PY_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/pyrealsense2")
15 endif()