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:
parent
d3e6920051
commit
0f45de48d2
1 changed files with 5 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue