mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 23:49:06 +08:00
17 lines
674 B
Diff
17 lines
674 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index d8679fb..6dc6501 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -35,6 +35,11 @@ if(LIBXSLT_WITH_PYTHON)
|
||
|
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)
|
||
|
+ 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)
|