svn commit: r1933637 - subversion/trunk

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177763147413.1127971.13731596211995324511@svn03-he-fi>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.