[kross-interpreters] ruby: KROSS Ruby only works with ruby 1.8.x. So reject 1.9.x

Michael Jansen kde at michael-jansen.biz
Mon Mar 18 19:26:49 UTC 2013


Git commit 4754a7cf43a26f0f1c1140c71c2ea48d1915d08a by Michael Jansen.
Committed on 18/03/2013 at 20:25.
Pushed by mjansen into branch 'master'.

KROSS Ruby only works with ruby 1.8.x. So reject 1.9.x

CCMAIL: kde-bindings at kde.org
CCMAIL: kde-buildsystem at kde.org

M  +10   -3    ruby/CMakeLists.txt

http://commits.kde.org/kross-interpreters/4754a7cf43a26f0f1c1140c71c2ea48d1915d08a

diff --git a/ruby/CMakeLists.txt b/ruby/CMakeLists.txt
index 1513ca0..575a371 100644
--- a/ruby/CMakeLists.txt
+++ b/ruby/CMakeLists.txt
@@ -1,7 +1,14 @@
-find_package(Ruby)
+find_package(Ruby 1.8 QUIET)
+
+if( RUBY_VERSION VERSION_GREATER "1.9" )
+    message(STATUS "Found Ruby: ${RUBY_EXECUTABLE} (found version \"${RUBY_VERSION}\") but only 1.8.x supported")
+    set(RUBY_FOUND False)
+else()
+    message(STATUS "Found Ruby: ${RUBY_EXECUTABLE} (found version \"${RUBY_VERSION}\")")
+endif()
 
 macro_log_feature(RUBY_FOUND
-  "Ruby" "Ruby libraries" "http://www.ruby-lang.org" FALSE "" "Needed to compile the Ruby bindings")
+  "Ruby" "Ruby libraries" "http://www.ruby-lang.org" FALSE "1.8.x" "Needed to compile the Ruby bindings")
 
 set(krossruby_PART_SRCS
    rubyvariant.cpp
@@ -18,4 +25,4 @@ if(RUBY_FOUND)
   kde4_add_plugin(krossruby ${krossruby_PART_SRCS})
   target_link_libraries(krossruby ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KROSSCORE_LIBS} ${RUBY_LIBRARY})
   install(TARGETS krossruby  DESTINATION ${PLUGIN_INSTALL_DIR})
-endif()
\ No newline at end of file
+endif()


More information about the Kde-buildsystem mailing list