[Kde-bindings] branches/KDE/4.5/kdebindings/ruby

Richard Dale richard.j.dale at gmail.com
Mon Aug 9 20:08:43 UTC 2010


SVN commit 1161141 by rdale:

* Only build krossruby if the ruby version is 1.8

CCMAIL: kde-bindings at kde.org


 M  +2 -2      CMakeLists.txt  


--- branches/KDE/4.5/kdebindings/ruby/CMakeLists.txt #1161140:1161141
@@ -74,9 +74,9 @@
             #include <ruby.h>
             int main() { ruby_init(); return 0; }" RubyCompiles)
         if(RubyCompiles)
-            if(ENABLE_KROSSRUBY)
+            if(ENABLE_KROSSRUBY AND RUBY_VERSION_MAJOR = 9 AND RUBY_VERSION_MINOR < 9)
                 set(BUILD_KrossRuby TRUE)
-            endif(ENABLE_KROSSRUBY)
+            endif(ENABLE_KROSSRUBY AND RUBY_VERSION_MAJOR = 9 AND RUBY_VERSION_MINOR < 9)
         else(RubyCompiles)
             message(STATUS "Failed to compile a C++ program that embeds ruby.")
         endif(RubyCompiles)



More information about the Kde-bindings mailing list