aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opencv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/opencv.rb')
-rw-r--r--Library/Formula/opencv.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/opencv.rb b/Library/Formula/opencv.rb
index 1a9bb3813..e82bbf76e 100644
--- a/Library/Formula/opencv.rb
+++ b/Library/Formula/opencv.rb
@@ -16,6 +16,7 @@ class Opencv < Formula
option '32-bit'
option 'with-qt', 'Build the Qt4 backend to HighGUI'
option 'with-tbb', 'Enable parallel code in OpenCV using Intel TBB'
+ option 'with-opencl', 'Enable gpu code in OpenCV using OpenCL'
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
@@ -50,6 +51,7 @@ class Opencv < Formula
end
args << '-DWITH_QT=ON' if build.include? 'with-qt'
args << '-DWITH_TBB=ON' if build.include? 'with-tbb'
+ args << '-DWITH_OPENCL=ON' if build.include? 'with-opencl'
# The CMake `FindPythonLibs` Module is dumber than a bag of hammers when
# more than one python installation is available---for example, it clings