Skip to content

Commit

Permalink
opencv@3: fix build failure on Linux
Browse files Browse the repository at this point in the history
Follow-up to Homebrew#131405.
  • Loading branch information
carlocab committed Jun 6, 2023
1 parent c339502 commit a395f9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/opencv@3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def install
args << "-DENABLE_SSE41=OFF" << "-DENABLE_SSE42=OFF" unless MacOS.version.requires_sse42?
end

# error: ‘...’ has virtual functions and accessible non-virtual destructor [-Werror=non-virtual-dtor]
ENV.append_to_cflags "-Wno-non-virtual-dtor" if OS.linux?

system "cmake", "-S", ".", "-B", "build_shared", *args
inreplace "build_shared/modules/core/version_string.inc", "#{Superenv.shims_path}/", ""
system "cmake", "--build", "build_shared"
Expand Down

0 comments on commit a395f9e

Please sign in to comment.