diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bd4a7259044c0a98fa43886d4017e4129355e08_Q01ha2VMaXN0cy50eHQ=..39f04dd7e65e1d43fdc796dc03cb9bbc426af92b_Q01ha2VMaXN0cy50eHQ= 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,14 +33,7 @@ if(LIBXSLT_WITH_PYTHON) check_include_files(unistd.h HAVE_UNISTD_H) check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL) - if(HAVE_UNISTD_H AND HAVE_F_GETFL) - find_package(Python COMPONENTS Interpreter Development REQUIRED) - else() - find_package(Python2 COMPONENTS Interpreter Development REQUIRED) - add_library(Python::Python ALIAS Python2::Python) - set(Python_EXECUTABLE ${Python2_EXECUTABLE}) - set(Python_SITEARCH ${Python2_SITEARCH}) - endif() + find_package(Python COMPONENTS Interpreter Development REQUIRED) set(LIBXSLT_PYTHON_INSTALL_DIR ${Python_SITEARCH} CACHE PATH "Python bindings install directory") endif()