1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Gregor Riepl <onitake@gmail.com>
Date: Wed, 4 May 2022 12:33:45 -0600
Subject: Install to correct site-packages dir, based on Python version.
The Debian hack in CMakeLists was removed upstream, but python3 doesn't
report a Python-specific site-packages folder.
This is required, because SIP packages need to be compiled and installed
for every Python version separately.
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28b2683..e36bce1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,8 @@ if(BUILD_PYTHON)
endif()
message(STATUS "Linking and building ${project_name} against Python ${Python_VERSION}")
+ set(Python_SITEARCH lib${LIB_SUFFIX}/python${PYVER}/site-packages CACHE STRING "Directory to install Python bindings to")
+
find_package(SIP REQUIRED 6.5.0)
add_library(pySavitar INTERFACE)
|