summaryrefslogtreecommitdiff
path: root/Modules/FindPython2.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-03-03 13:10:16 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2020-03-03 13:13:48 +0100
commit0c97b73bc09ee34aa40667a044f05e7049d16a60 (patch)
treed38f6a3858afc2a1004a9e99ccab4d568afe284c /Modules/FindPython2.cmake
parentd1cb554c99c73e1486fbf4e09125337a7c0e9ea3 (diff)
downloadcmake-0c97b73bc09ee34aa40667a044f05e7049d16a60.tar.gz
FindPython: python_add_library can now manage SOABI suffix.
Fixes: #20408
Diffstat (limited to 'Modules/FindPython2.cmake')
-rw-r--r--Modules/FindPython2.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake
index 9d4eda2174..af8ad3913a 100644
--- a/Modules/FindPython2.cmake
+++ b/Modules/FindPython2.cmake
@@ -240,13 +240,14 @@ setting the following variables:
Commands
^^^^^^^^
-This module defines the command ``Python_add_library`` (when
+This module defines the command ``Python2_add_library`` (when
:prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as
:command:`add_library` and adds a dependency to target ``Python2::Python`` or,
when library type is ``MODULE``, to target ``Python2::Module`` and takes care
of Python module naming rules::
- Python2_add_library (my_module MODULE src1.cpp)
+ Python2_add_library (<name> [STATIC | SHARED | MODULE]
+ <source1> [<source2> ...])
If library type is not specified, ``MODULE`` is assumed.
#]=======================================================================]