summaryrefslogtreecommitdiffstats
path: root/Tests/FindPython/Python3
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2024-05-30 17:08:30 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2024-06-04 16:14:35 (GMT)
commit9a0dee7257e9b9739f67300631cb56a5482de70e (patch)
treef6ef3272c9c3b90bc58c9b678b3d56bf8216edff /Tests/FindPython/Python3
parent4178ab928f7e09ad453ec79815de79b9aab780a3 (diff)
downloadCMake-9a0dee7257e9b9739f67300631cb56a5482de70e.zip
CMake-9a0dee7257e9b9739f67300631cb56a5482de70e.tar.gz
CMake-9a0dee7257e9b9739f67300631cb56a5482de70e.tar.bz2
FindPython: Add support for free threaded python
Fixes: #26016
Diffstat (limited to 'Tests/FindPython/Python3')
-rw-r--r--Tests/FindPython/Python3/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FindPython/Python3/CMakeLists.txt b/Tests/FindPython/Python3/CMakeLists.txt
index 53d8b12..28f68e1 100644
--- a/Tests/FindPython/Python3/CMakeLists.txt
+++ b/Tests/FindPython/Python3/CMakeLists.txt
@@ -76,6 +76,11 @@ if (abi MATCHES "u")
else()
list (APPEND Python3_VALID_ABI "OFF")
endif()
+if (abi MATCHES "t")
+ list (APPEND Python3_VALID_ABI "ON")
+else()
+ list (APPEND Python3_VALID_ABI "OFF")
+endif()
# build an invalid pattern for ABI
set (Python3_INVALID_ABI)
foreach (abi IN LISTS Python3_VALID_ABI)