diff options
| author | Brad King <brad.king@kitware.com> | 2020-03-04 13:19:54 (GMT) |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-04 13:20:18 (GMT) |
| commit | 95b151af9039940daa3e6767da2ec1db8bb07ee5 (patch) | |
| tree | 44a11b7205bd0095d2485e179c720f4dcd19fbdf /Modules/FindPython2.cmake | |
| parent | 288a3204ed78399e0d88af6b28e169cc2a3f6af4 (diff) | |
| parent | 0c97b73bc09ee34aa40667a044f05e7049d16a60 (diff) | |
| download | CMake-95b151af9039940daa3e6767da2ec1db8bb07ee5.zip CMake-95b151af9039940daa3e6767da2ec1db8bb07ee5.tar.gz CMake-95b151af9039940daa3e6767da2ec1db8bb07ee5.tar.bz2 | |
Merge topic 'FindPython-manage-SOABI-suffix'
0c97b73bc0 FindPython: python_add_library can now manage SOABI suffix.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4420
Diffstat (limited to 'Modules/FindPython2.cmake')
| -rw-r--r-- | Modules/FindPython2.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake index 9d4eda2..af8ad39 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. #]=======================================================================] |
