diff options
| author | Xiao Li | 2012-05-24 16:57:53 -0700 |
|---|---|---|
| committer | Jack Nagel | 2012-06-07 16:00:21 -0500 |
| commit | b4ddeeab15f9fc5d2b3f7ecbf22ac4d8d2bae16f (patch) | |
| tree | eaf878a5a2ca7f39247f3576e8ca78f95e4a0efd | |
| parent | 206858bf836aaeba533860a96bd4fd176ce5fc0d (diff) | |
| download | homebrew-b4ddeeab15f9fc5d2b3f7ecbf22ac4d8d2bae16f.tar.bz2 | |
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>
| -rw-r--r-- | Library/Formula/opencv.rb | 4 |
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 |
