mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
cmake: Fix Python installation
Don't install into ${Python_SITEARCH} for now.
This commit is contained in:
parent
243fdbc31c
commit
02e1237196
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user