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:17 (GMT) |
| commit | ab00435e79205d6a447988f41cd53ede9ee42273 (patch) | |
| tree | 6e19e16d1dca80897897c8c6621f1ebf33524016 /Modules/FindPython3.cmake | |
| parent | b0317d9b98f35402ad18fbdb47b1f6c0ed14cc97 (diff) | |
| parent | 0c97b73bc09ee34aa40667a044f05e7049d16a60 (diff) | |
| download | CMake-ab00435e79205d6a447988f41cd53ede9ee42273.zip CMake-ab00435e79205d6a447988f41cd53ede9ee42273.tar.gz CMake-ab00435e79205d6a447988f41cd53ede9ee42273.tar.bz2 | |
Merge topic 'FindPython-manage-SOABI-suffix' into release-3.17
0c97b73bc0 FindPython: python_add_library can now manage SOABI suffix.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4420
Diffstat (limited to 'Modules/FindPython3.cmake')
| -rw-r--r-- | Modules/FindPython3.cmake | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake index 00c354e..66f4f75 100644 --- a/Modules/FindPython3.cmake +++ b/Modules/FindPython3.cmake @@ -288,15 +288,19 @@ setting the following variables: Commands ^^^^^^^^ -This module defines the command ``Python_add_library`` (when +This module defines the command ``Python3_add_library`` (when :prop_gbl:`CMAKE_ROLE` is ``PROJECT``), which has the same semantics as :command:`add_library` and adds a dependency to target ``Python3::Python`` or, when library type is ``MODULE``, to target ``Python3::Module`` and takes care of Python module naming rules:: - Python3_add_library (my_module MODULE src1.cpp) + Python3_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 ``Python3_SOABI`` value, if any. #]=======================================================================] |
