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/Python3Module | |
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/Python3Module')
-rw-r--r-- | Tests/FindPython/Python3Module/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/FindPython/Python3Module/CMakeLists.txt b/Tests/FindPython/Python3Module/CMakeLists.txt index 5945962..ccc1fdb 100644 --- a/Tests/FindPython/Python3Module/CMakeLists.txt +++ b/Tests/FindPython/Python3Module/CMakeLists.txt @@ -11,6 +11,9 @@ endif() if (Python3_Development_FOUND) message (FATAL_ERROR "Python 3, COMPONENT 'Development' unexpectedly found") endif() +if (Python3_Development.SABIModule_FOUND) + message (FATAL_ERROR "Python 3, COMPONENT 'Development.SABIModule' unexpectedly found") +endif() if (Python3_Development.Embed_FOUND) message (FATAL_ERROR "Python 3, COMPONENT 'Development.Embed' unexpectedly found") endif() @@ -25,6 +28,12 @@ endif() if(TARGET Python3::Python) message(SEND_ERROR "Python3::Python unexpectedly found") endif() +if(TARGET Python3::SABIMOdule) + message(SEND_ERROR "Python3::SABIModule unexpectedly found") +endif() +if(TARGET Python3::Embed) + message(SEND_ERROR "Python3::Embed unexpectedly found") +endif() if(NOT TARGET Python3::Module) message(SEND_ERROR "Python3::Module not found") endif() |