1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

fix for Ruby 2.0.0

This commit is contained in:
ser1zw 2013-03-03 05:26:54 +09:00
parent 3f9f07d465
commit 00e8ddfaf5

View file

@ -13,6 +13,9 @@ def cv_version_suffix(incdir)
major + minor + subminor
end
# Quick fix for 2.0.0
# @libdir_basename is set to nil and dir_config() sets invalid libdir '${opencv-dir}/' when --with-opencv-dir option passed.
@libdir_basename ||= 'lib'
incdir, libdir = dir_config("opencv", "/usr/local/include", "/usr/local/lib")
dir_config("libxml2", "/usr/include", "/usr/lib")