cmake: Fix Python installation

Don't install into ${Python_SITEARCH} for now.
This commit is contained in:
Nick Wellnhofer 2022-09-04 20:12:18 +02:00
parent 243fdbc31c
commit 02e1237196

View File

@ -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)