diff options
| author | Brad King <brad.king@kitware.com> | 2023-03-20 12:11:56 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2023-03-20 12:11:56 (GMT) |
| commit | 8a71c88d4d4aa4805713a0266f83f3fcd48f91de (patch) | |
| tree | 9cee050cad8c34dba9d59d5fbf866888f70d49b9 /Modules/FindPython/Support.cmake | |
| parent | c3110a500e6ff66775976680d36500b4919ec37e (diff) | |
| parent | 4c902d675b764ad3d8f54a6e235547d289752c45 (diff) | |
| download | CMake-8a71c88d4d4aa4805713a0266f83f3fcd48f91de.zip CMake-8a71c88d4d4aa4805713a0266f83f3fcd48f91de.tar.gz CMake-8a71c88d4d4aa4805713a0266f83f3fcd48f91de.tar.bz2 | |
Merge branch 'backport-3.26-FindPython-SOSABI-handling'
Diffstat (limited to 'Modules/FindPython/Support.cmake')
| -rw-r--r-- | Modules/FindPython/Support.cmake | 2 |
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 |
