forked from mirrors/nixpkgs
16 lines
1,000 B
Diff
16 lines
1,000 B
Diff
|
--- a/wrappers/python/CMakeLists.txt
|
||
|
+++ b/wrappers/python/CMakeLists.txt
|
||
|
@@ -10,11 +10,11 @@
|
||
|
if (CMAKE_VERSION VERSION_LESS 3.12)
|
||
|
find_package(PythonInterp REQUIRED)
|
||
|
find_package(PythonLibs REQUIRED)
|
||
|
- set(PYTHON_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
|
||
|
+ set(PYTHON_INSTALL_DIR "${XXNIX_PYTHON_SITEPACKAGES}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
|
||
|
set(CMAKECONFIG_PY_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/pyrealsense2")
|
||
|
else()
|
||
|
find_package(Python REQUIRED COMPONENTS Interpreter Development)
|
||
|
- set(PYTHON_INSTALL_DIR "${Python_SITEARCH}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
|
||
|
+ set(PYTHON_INSTALL_DIR "${XXNIX_PYTHON_SITEPACKAGES}/pyrealsense2" CACHE PATH "Installation directory for Python bindings")
|
||
|
set(CMAKECONFIG_PY_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/pyrealsense2")
|
||
|
endif()
|