aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/opencv.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index ad87424fd..ce46a0bdc 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -30,7 +30,8 @@ class Opencv < Formula
def options
[
["--32-bit", "Build 32-bit only."],
- ["--with-qt", "Build qt backend."]
+ ["--with-qt", "Build qt backend."],
+ ["--with-tbb", "Build with TBB support."]
]
end
@@ -38,6 +39,7 @@ class Opencv < Formula
args = std_cmake_args
args << "-DOPENCV_EXTRA_C_FLAGS='-arch i386 -m32'" if ARGV.build_32_bit?
args << "-DWITH_QT=ON" if ARGV.include? "--with-qt"
+ args << "-DWITH_TBB=ON" if ARGV.include? "--with-tbb"
# The CMake `FindPythonLibs` Module is dumber than a bag of hammers when
# more than one python installation is available---for example, it clings