cmake: add support python 3.10
This commit is contained in:
parent
bd50d3a02e
commit
4d7a4596d7
@ -1,12 +1,26 @@
|
||||
From c8c89461fd7e67d2aa0107eee4f7856bc6c7b474 Mon Sep 17 00:00:00 2001
|
||||
From cd42039f86055090db6c4ad5f8a8ca84f94123df Mon Sep 17 00:00:00 2001
|
||||
From: wangzengliang <wangzengliang1@huawei.com>
|
||||
Date: Fri, 8 Apr 2022 09:01:21 +0800
|
||||
Date: Fri, 8 Apr 2022 10:19:18 +0800
|
||||
Subject: [PATCH] cmake: add support python 3.10
|
||||
|
||||
---
|
||||
cmake/modules/BuildBoost.cmake | 2 +-
|
||||
cmake/modules/FindPython/Support.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake
|
||||
index 468ae419c..320c2dcd5 100644
|
||||
--- a/cmake/modules/BuildBoost.cmake
|
||||
+++ b/cmake/modules/BuildBoost.cmake
|
||||
@@ -70,7 +70,7 @@ function(do_build_boost version)
|
||||
if(c MATCHES "^python([0-9])\$")
|
||||
set(with_python_version "${CMAKE_MATCH_1}")
|
||||
list(APPEND boost_with_libs "python")
|
||||
- elseif(c MATCHES "^python([0-9])\\.?([0-9])\$")
|
||||
+ elseif(c MATCHES "^python([0-9])\\.?([0-9]+)\$")
|
||||
set(with_python_version "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}")
|
||||
list(APPEND boost_with_libs "python")
|
||||
else()
|
||||
diff --git a/cmake/modules/FindPython/Support.cmake b/cmake/modules/FindPython/Support.cmake
|
||||
index c05bbe330..fb362bfe2 100644
|
||||
--- a/cmake/modules/FindPython/Support.cmake
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user