summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-03-03 12:10:16 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-03-03 12:13:48 (GMT)
commit0c97b73bc09ee34aa40667a044f05e7049d16a60 (patch)
treed38f6a3858afc2a1004a9e99ccab4d568afe284c /Modules/FindPython.cmake
parentd1cb554c99c73e1486fbf4e09125337a7c0e9ea3 (diff)
downloadCMake-0c97b73bc09ee34aa40667a044f05e7049d16a60.zip
CMake-0c97b73bc09ee34aa40667a044f05e7049d16a60.tar.gz
CMake-0c97b73bc09ee34aa40667a044f05e7049d16a60.tar.bz2
FindPython: python_add_library can now manage SOABI suffix.
Fixes: #20408
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index be272e1..9dfa222 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -297,9 +297,13 @@ This module defines the command ``Python_add_library`` (when
when library type is ``MODULE``, to target ``Python::Module`` and takes care of
Python module naming rules::
- Python_add_library (my_module MODULE src1.cpp)
+ Python_add_library (<name> [STATIC | SHARED | MODULE [WITH_SOABI]]
+ <source1> [<source2> ...])
-If library type is not specified, ``MODULE`` is assumed.
+If the library type is not specified, ``MODULE`` is assumed.
+
+For ``MODULE`` library type, if option ``WITH_SOABI`` is specified, the
+module suffix will include the ``Python_SOABI`` value, if any.
#]=======================================================================]