summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-24 19:08:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-09-24 19:08:52 (GMT)
commitd031b7b0449ee8768db3e27a20f1a9cb8962abef (patch)
tree126899678bc55e1401db4f2e63614fa977ca2324 /Modules
parent177fc020731bcee747295573c92cd0f7ca200e53 (diff)
parent6c094c1c1e8ec3b22d4c4af2c77bdcdb855a9132 (diff)
downloadCMake-d031b7b0449ee8768db3e27a20f1a9cb8962abef.zip
CMake-d031b7b0449ee8768db3e27a20f1a9cb8962abef.tar.gz
CMake-d031b7b0449ee8768db3e27a20f1a9cb8962abef.tar.bz2
Merge topic 'FindPython-fix-regex' into release-3.18
6c094c1c1e FindPython: Fix erroneous regex in ABI check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5257
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindPython/Support.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 42bb9fe..c8225c4 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -612,7 +612,7 @@ function (_PYTHON_GET_VERSION)
if (NOT config)
# pyconfig.h can be a wrapper to a platform specific pyconfig.h
# In this case, try to identify ABI from include directory
- if (_${_PYTHON_PREFIX}_INCLUDE_DIR MATCHES "python${version_major}\.${version_minor}+([dmu]*)")
+ if (_${_PYTHON_PREFIX}_INCLUDE_DIR MATCHES "python${version_major}\\.${version_minor}+([dmu]*)")
set (abi "${CMAKE_MATCH_1}")
else()
set (abi "")