You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2026/05/08 15:03:28 UTC

svn commit: r1933947 - subversion/trunk

Author: jun66j5
Date: Fri May  8 15:03:28 2026
New Revision: 1933947

Log:
cmake: Follow-up to r1933842, fix a issue that it is unable to find *.i files
in SWIG lib.

* CMakeLists.txt
  (): Call find_package(SWIG) before include(UseSWIG).

Modified:
   subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt	Fri May  8 15:00:04 2026	(r1933946)
+++ subversion/trunk/CMakeLists.txt	Fri May  8 15:03:28 2026	(r1933947)
@@ -230,6 +230,7 @@ if(BUILD_SHARED_LIBS OR SVN_BUILD_SHARED
 endif()
 
 if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
+  find_package(SWIG REQUIRED)
   include(UseSWIG)
 
   set(SWIG_INCLUDE_DIRECTORIES
@@ -564,8 +565,6 @@ if (SVN_ENABLE_TUI)
 endif()
 
 if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
-  find_package(SWIG REQUIRED)
-
   file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
 
   add_library(external-swig INTERFACE)