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:
parent
3f9f07d465
commit
00e8ddfaf5
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue