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

fix #77 : add a compile option to build headers with C++

This commit is contained in:
ser1zw 2016-05-11 03:20:32 +09:00
parent d3e6920051
commit 0f45de48d2

View file

@ -44,7 +44,11 @@ opencv_libraries.each { |lib| raise "#{lib} not found." unless have_library(lib)
# Check the required headers
puts ">> Check the required headers..."
opencv_headers.each { |header| raise "#{header} not found." unless have_header(header) }
# TODO: #77 Check this in some OS/compilers
with_cflags("-x c++") do
opencv_headers.each { |header| raise "#{header} not found." unless have_header(header) }
end
if $warnflags
$warnflags.slice!('-Wdeclaration-after-statement')