35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 86f06c1e30b2fddeac6be8f8508ac225ebd0d4e1 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
|
|
Date: Fri, 24 Nov 2017 16:39:22 +0100
|
|
Subject: [PATCH 06/20] Find Ruby 2.5
|
|
|
|
---
|
|
cmake/modules/FindRuby.cmake | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/cmake/modules/FindRuby.cmake b/cmake/modules/FindRuby.cmake
|
|
index 1671f029..bc6d48d4 100644
|
|
--- a/cmake/modules/FindRuby.cmake
|
|
+++ b/cmake/modules/FindRuby.cmake
|
|
@@ -21,7 +21,7 @@ endif (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
|
# RUBY_LIBDIR=`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"libdir"@:>@)'`
|
|
# RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`
|
|
|
|
-FIND_PROGRAM(RUBY_EXECUTABLE NAMES ruby ruby22 ruby21 ruby20 ruby19 ruby1.8 ruby18 )
|
|
+FIND_PROGRAM(RUBY_EXECUTABLE NAMES ruby.ruby2.5 ruby.ruby2.4 ruby.ruby2.3 ruby.ruby2.2 ruby ruby22 ruby21 ruby20 ruby19 ruby1.8 ruby18 )
|
|
|
|
EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['MAJOR']"
|
|
OUTPUT_VARIABLE RUBY_VERSION_MAJOR)
|
|
@@ -91,7 +91,7 @@ FIND_PATH(RUBY_INCLUDE_PATH
|
|
/usr/lib/ruby/1.8/i586-linux-gnu/ )
|
|
|
|
FIND_LIBRARY(RUBY_LIBRARY
|
|
- NAMES ruby ruby1.9 ruby1.8
|
|
+ NAMES ruby2.5 ruby2.4 ruby2.3 ruby2.2 ruby2.1 ruby ruby1.9 ruby1.8
|
|
PATHS
|
|
${RUBY_POSSIBLE_LIB_PATH}
|
|
${RUBY_RUBY_LIB_PATH}
|
|
--
|
|
2.15.1
|
|
|