[libxml2] cmake: Fix Python installation



commit 02e12371964ed10c2c84ebb49760bc11b34913e1
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Sep 4 20:12:18 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 85435586..4f467efe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,7 +78,9 @@ if(LIBXML2_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(LIBXML2_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+        #set(LIBXML2_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory")
+        set(LIBXML2_PYTHON_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/python"
+           CACHE PATH "Python bindings install directory")
 endif()
 
 if(LIBXML2_WITH_THREADS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]