[libxslt] cmake: Fix Python installation
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] cmake: Fix Python installation
- Date: Tue, 6 Sep 2022 20:58:33 +0000 (UTC)
commit 2f7139962a29dd05d8e8e651182cebd3da35e694
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Sep 6 14:33:37 2022 +0200
cmake: Fix Python installation
Don't install into ${Python_SITEARCH} for now.
CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c0df6bab..4a0ee9e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,7 +34,9 @@ if(LIBXSLT_WITH_PYTHON)
check_include_files(unistd.h HAVE_UNISTD_H)
check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
find_package(Python COMPONENTS Interpreter Development REQUIRED)
- set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+ #set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+ set(LIBXSLT_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/python"
+ CACHE PATH "Python bindings install directory")
endif()
if(LIBXSLT_WITH_THREADS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]