[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-buildsystem
Subject: [kross-interpreters] ruby: KROSS Ruby only works with ruby 1.8.x. So reject 1.9.x
From: Michael Jansen <kde () michael-jansen ! biz>
Date: 2013-03-18 19:26:49
Message-ID: 20130318192649.96E8DA60C6 () git ! kde ! org
[Download RAW message or body]
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@kde.org
CCMAIL: kde-buildsystem@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()
_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic