FindPython: fix the definition of SABI artifacts

Fixes: #26881
This commit is contained in:
Marc Chevrier
2025-04-20 11:32:58 +02:00
committed by Brad King
parent 8bcbcff451
commit bd7a27bcc7
4 changed files with 39 additions and 9 deletions
@@ -33,7 +33,7 @@ if(NOT TARGET Python3::SABIModule)
message(SEND_ERROR "Python3::SABIModule not found")
endif()
if (Python3_VERSION VERSION_GREATER_EQUAL "3.2" AND NOT Python3_SOSABI)
if (Python3_VERSION VERSION_GREATER_EQUAL "3.2" AND NOT DEFINED Python3_SOSABI)
message(FATAL_ERROR "Python3_SOSABI unexpectedly not defined")
endif()