dependency-check/Rakefile in red-arrow-cuda-1.0.1 vs dependency-check/Rakefile in red-arrow-cuda-2.0.0

- old
+ new

@@ -17,10 +17,11 @@ # specific language governing permissions and limitations # under the License. require "pkg-config" require "native-package-installer" +require_relative "../lib/arrow-cuda/version" case RUBY_PLATFORM when /mingw|mswin/ task :default => "nothing" else @@ -31,10 +32,13 @@ end namespace :dependency do desc "Check dependency" task :check do - unless PKGConfig.check_version?("arrow-cuda-glib") + unless PKGConfig.check_version?("arrow-cuda-glib", + ArrowCUDA::Version::MAJOR, + ArrowCUDA::Version::MINOR, + ArrowCUDA::Version::MICRO) unless NativePackageInstaller.install(:debian => "libarrow-cuda-glib-dev", :redhat => "arrow-cuda-glib-devel") exit(false) end end