svn commit: r1933880 - subversion/trunk

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177805527136.3329279.3932367470287978067@svn03-he-fi>
Author: jun66j5
Date: Wed May  6 08:14:31 2026
New Revision: 1933880

Log:
Follow-up to r1933812: Set `SWIG_INCLUDE_DIRECTORIES` before the targets
because swig is unable to find *.swg files.

* CMakeLists.txt
  (): Move the set() before the targets.

Modified:
   subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt	Wed May  6 05:33:43 2026	(r1933879)
+++ subversion/trunk/CMakeLists.txt	Wed May  6 08:14:31 2026	(r1933880)
@@ -231,6 +231,15 @@ endif()
 
 if (SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SWIG_PYTHON OR SVN_ENABLE_SWIG_RUBY)
   include(UseSWIG)
+
+  set(SWIG_INCLUDE_DIRECTORIES
+    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
+    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
+    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
+
+    ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
+    ${CMAKE_CURRENT_BINARY_DIR}
+  )
 endif()
 
 # Setup modules path
@@ -559,15 +568,6 @@ if(SVN_ENABLE_SWIG_PERL OR SVN_ENABLE_SW
 
   file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy")
 
-  set(SWIG_INCLUDE_DIRECTORIES
-    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/include
-    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig
-    ${CMAKE_CURRENT_SOURCE_DIR}/subversion/include
-
-    ${CMAKE_CURRENT_BINARY_DIR}/subversion/bindings/swig/proxy
-    ${CMAKE_CURRENT_BINARY_DIR}
-  )
-
   add_library(external-swig INTERFACE)
 
   file(GLOB swig_headers_input "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include/*.h")
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.