diff options
| author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-11-18 15:24:17 (GMT) |
|---|---|---|
| committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-11-29 15:48:08 (GMT) |
| commit | 77d734aede807a038ab10520620cfbb24e84e76e (patch) | |
| tree | bc20ce786a249862842c82484393d61edef2b0ca /Tests/FindPython/RequiredArtifacts/Check | |
| parent | f72c405d4ee4ad4775a10a944774b91f49726dad (diff) | |
| download | CMake-77d734aede807a038ab10520620cfbb24e84e76e.zip CMake-77d734aede807a038ab10520620cfbb24e84e76e.tar.gz CMake-77d734aede807a038ab10520620cfbb24e84e76e.tar.bz2 | |
FindPython: add support for Stable ABI
Fixes: #24141
Diffstat (limited to 'Tests/FindPython/RequiredArtifacts/Check')
| -rw-r--r-- | Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt b/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt index 287cfdb..bb4f67c 100644 --- a/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt +++ b/Tests/FindPython/RequiredArtifacts/Check/CMakeLists.txt @@ -16,6 +16,10 @@ if (CHECK_LIBRARY OR CHECK_INCLUDE) set (required_include "${Python3_INCLUDE_DIR}") endif() endif() +if (CHECK_SABI_LIBRARY) + list (APPEND components Development.SABIModule) + set (required_sabi_library "${Python3_SABI_LIBRARY}") +endif() find_package (Python3 COMPONENTS ${components}) @@ -39,3 +43,7 @@ endif() if (CHECK_INCLUDE AND NOT Python3_INCLUDE_DIRS STREQUAL required_include) message (FATAL_ERROR "Failed to use input variable Python3_INCLUDE_DIR") endif() + +if (CHECK_SABI_LIBRARY AND NOT Python3_SABI_LIBRARY_RELEASE STREQUAL required_sabi_library) + message (FATAL_ERROR "Failed to use input variable Python3_SABI_LIBRARY") +endif() |
