mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 13:39:47 -05:00
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:
1 parent
206858bf83
commit
b4ddeeab15
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user