summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-11-18 15:24:17 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-11-29 15:48:08 (GMT)
commit77d734aede807a038ab10520620cfbb24e84e76e (patch)
treebc20ce786a249862842c82484393d61edef2b0ca /Tests/CMakeLists.txt
parentf72c405d4ee4ad4775a10a944774b91f49726dad (diff)
downloadCMake-77d734aede807a038ab10520620cfbb24e84e76e.zip
CMake-77d734aede807a038ab10520620cfbb24e84e76e.tar.gz
CMake-77d734aede807a038ab10520620cfbb24e84e76e.tar.bz2
FindPython: add support for Stable ABI
Fixes: #24141
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index d4ef7ee..e5e592b 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1538,8 +1538,11 @@ if(BUILD_TESTING)
add_subdirectory(GoogleTest)
endif()
- if(CMake_TEST_FindPython OR CMake_TEST_FindPython_NumPy
+ if(CMake_TEST_FindPython OR CMake_TEST_FindPython_SABIModule OR CMake_TEST_FindPython_NumPy
OR CMake_TEST_FindPython_Conda OR CMake_TEST_FindPython_IronPython OR CMake_TEST_FindPython_PyPy)
+ if (CMake_TEST_FindPython AND CMAKE_SYSTEM_NAME MATCHES "Linux|Darwin")
+ set(CMake_TEST_FindPython_SABIModule TRUE)
+ endif()
add_subdirectory(FindPython)
endif()