svn commit: r1933947 - subversion/trunk

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177825260838.200033.6163458915103383848@svn03-he-fi>
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)
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.