summaryrefslogtreecommitdiff
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-07 16:42:15 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2020-01-09 14:43:22 +0100
commit61502d395609672cd101da74d290895d20b0e7c7 (patch)
treee4e208381f5a5fb5268a60fd7ddf0a70c5a5e616 /Modules/FindPython.cmake
parent635225513e2139559cc3e31acc8006377e01fc94 (diff)
downloadcmake-61502d395609672cd101da74d290895d20b0e7c7.tar.gz
FindPython: Add variable Python_SOABI
This variable holds the standard extension suffix for modules. Fixes: #20150
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index 177ed58485..be272e19fb 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -93,6 +93,13 @@ This module will set the following variables in your project
Information returned by
``distutils.sysconfig.get_python_lib(plat_specific=True,standard_lib=False)``.
+``Python_SOABI``
+ Extension suffix for modules.
+
+ Information returned by
+ ``distutils.sysconfig.get_config_flag('SOABI')`` or computed from
+ ``distutils.sysconfig.get_config_flag('EXT_SUFFIX')`` or
+ ``python-config --extension-suffix``.
``Python_Compiler_FOUND``
System has the Python compiler.
``Python_COMPILER``