summarylogtreecommitdiffstats
path: root/0003-swift-python2-as-fallback-only.patch
blob: 399a00757ec77a1d48b2cbc9e6cb113181f27fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From a20416f07c26b8dbb62b0b0b2b51d47f658cc1b2 Mon Sep 17 00:00:00 2001
From: soloturn <soloturn@gmail.com>
Date: Sat, 11 Jul 2020 04:26:10 +0200
Subject: [PATCH] swift python2 as fallback only

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c8f9999c2a..df2da5e731 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -898,7 +898,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
   endif()
 endif()
 
-find_package(Python2 COMPONENTS Interpreter REQUIRED)
+find_package(Python2 COMPONENTS Interpreter)
 find_package(Python3 COMPONENTS Interpreter REQUIRED)
 if(NOT Python3_Interpreter_FOUND)
   message(WARNING "Python3 not found, using python2 as a fallback")
-- 
2.27.0