opencv: add option for TBB support

TBB enables parallel code in OpenCV. Some task like opencv_traincascade
will be slow without TBB enabled.

Closes #12407.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Xiao Li authored and Jack Nagel committed 2012-06-07 16:00:21 -05:00
1 parent 206858bf83
commit b4ddeeab15
1 file changed
+3 -1
+3 -1
View File
@@ -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