Author: ivan
Date: Fri May  1 10:31:13 2026
New Revision: 1933637

Log:
cmake: Fix building Python SWIG bindings.

* CMakeLists.txt: Consistently search for python3 package. Link
  external-python `Python3::Python` target.

Modified:
   subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt     Fri May  1 08:55:28 2026        
(r1933636)
+++ subversion/trunk/CMakeLists.txt     Fri May  1 10:31:13 2026        
(r1933637)
@@ -428,12 +428,12 @@ endif()
 ### Python
 
 if(SVN_ENABLE_SWIG_PYTHON)
-  find_package(Python REQUIRED COMPONENTS
+  find_package(Python3 REQUIRED COMPONENTS
       Interpreter
       Development.Embed
   )
 elseif(SVN_ENABLE_TESTS)
-  find_package(Python REQUIRED COMPONENTS
+  find_package(Python3 REQUIRED COMPONENTS
       Interpreter
   )
 endif()
@@ -561,7 +561,7 @@ if(SVN_ENABLE_SWIG_PYTHON)
 
   add_library(external-python INTERFACE)
   target_link_libraries(external-python INTERFACE
-    Python::Python
+    Python3::Python
     Python::py3c
   )
   target_include_directories(external-python INTERFACE

Reply via email to