summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-21 12:55:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-21 12:56:06 (GMT)
commitbf6131fc9a164ddf7d2ed02b6870cdbce4efd4e8 (patch)
tree6ac7f0926bcaa38e6d31690df6442f14bad03344 /Modules/FindPython
parent5e5a21aadd1468e81ff7795c352898f2e115ae0e (diff)
parent4c902d675b764ad3d8f54a6e235547d289752c45 (diff)
downloadCMake-bf6131fc9a164ddf7d2ed02b6870cdbce4efd4e8.zip
CMake-bf6131fc9a164ddf7d2ed02b6870cdbce4efd4e8.tar.gz
CMake-bf6131fc9a164ddf7d2ed02b6870cdbce4efd4e8.tar.bz2
Merge topic 'FindPython-SOSABI-handling' into release-3.26
4c902d675b FindPython: ensure Stable ABI is correctly handled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8345
Diffstat (limited to 'Modules/FindPython')
-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 f1be0f4..517ac21 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -579,7 +579,7 @@ function (_PYTHON_GET_CONFIG_VAR _PYTHON_PGCV_VALUE NAME)
endif()
endif()
elseif (NAME STREQUAL "SOSABI")
- execute_process (COMMAND ${_${_PYTHON_PREFIX}_INTERPRETER_LAUNCHER} "${_${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys\nimport re\nimport importlib\nsys.stdout.write(next(filter(lambda x: re.search('^\\.abi', x), importlib.machinery.EXTENSION_SUFFIXES)))"
+ execute_process (COMMAND ${_${_PYTHON_PREFIX}_INTERPRETER_LAUNCHER} "${_${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys\nimport re\nimport importlib.machinery\nsys.stdout.write(next(filter(lambda x: re.search('^\\.abi', x), importlib.machinery.EXTENSION_SUFFIXES)))"
RESULT_VARIABLE _result
OUTPUT_VARIABLE _values
ERROR_QUIET