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: [email protected] CCMAIL: [email protected] 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() _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
