Author: jun66j5
Date: Wed Jul 22 21:35:47 2026
New Revision: 1936504
Log:
cmake: Fix compilation of Ruby bindings failing with versions of cmake prior to
3.18.
* CMakeLists.txt
(swig-ruby):
Use `RUBY_INCLUDE_DIRS` instead when `Ruby_INCLUDE_DIRS` is not defined.
Modified:
subversion/trunk/CMakeLists.txt
Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt Wed Jul 22 21:34:29 2026
(r1936503)
+++ subversion/trunk/CMakeLists.txt Wed Jul 22 21:35:47 2026
(r1936504)
@@ -1024,6 +1024,9 @@ if(SVN_ENABLE_SWIG_RUBY)
find_package(Ruby REQUIRED)
add_library(external-ruby IMPORTED INTERFACE)
+ if(NOT DEFINED Ruby_INCLUDE_DIRS) # < 3.18
+ set(Ruby_INCLUDE_DIRS ${RUBY_INCLUDE_DIRS})
+ endif()
target_include_directories(external-ruby INTERFACE
${Ruby_INCLUDE_DIRS}
${SWIG_INCLUDE_DIRECTORIES}