aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libxslt/python3.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libxslt/python3.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libxslt/python3.patch')
-rw-r--r--vcpkg/ports/libxslt/python3.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/libxslt/python3.patch b/vcpkg/ports/libxslt/python3.patch
new file mode 100644
index 0000000..bca1d1d
--- /dev/null
+++ b/vcpkg/ports/libxslt/python3.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fb352475..75bd44a5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -63,6 +63,11 @@ if(LIBXSLT_WITH_PYTHON)
+ check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
+ if(WIN32 OR (HAVE_UNISTD_H AND HAVE_F_GETFL))
+ find_package(Python COMPONENTS Interpreter Development REQUIRED)
++ elseif(1)
++ find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
++ add_library(Python::Python ALIAS Python3::Python)
++ set(Python_EXECUTABLE ${Python3_EXECUTABLE})
++ set(Python_SITEARCH ${Python3_SITEARCH})
+ else()
+ find_package(Python2 COMPONENTS Interpreter Development REQUIRED)
+ add_library(Python::Python ALIAS Python2::Python)