0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
termux-packages/packages/ledger/CMakeLists.diff
Tee KOBAYASHI 51dc6b4904 Fix hardcoded Python version
%ci:no-build
2022-09-27 11:03:23 +09:00

14 lines
554 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 30d97cb9..341e782e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -335,7 +335,7 @@ if (USE_PYTHON)
$<TARGET_FILE:libledger> "${CMAKE_BINARY_DIR}/${_ledger_python_module_name}")
install(
FILES "${CMAKE_BINARY_DIR}/${_ledger_python_module_name}"
- DESTINATION ${Python_SITEARCH})
+ DESTINATION @TERMUX_PREFIX@/lib/python@PYTHON_VERSION@/site-packages/)
else()
message(WARNING "Python_SITEARCH not set. Will not install python module.")
endif()