[libxslt] cmake: Don't check for Python 2



commit c620fed0c74a8f575278723e0bfd1fdc5e212329
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Sep 6 13:20:58 2022 +0200

    cmake: Don't check for Python 2

 CMakeLists.txt | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 85aa2b81..c0df6bab 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,14 +33,7 @@ endif()
 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()
 


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