summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRonghang Hu <huronghang@hotmail.com>2015-10-22 15:17:26 -0700
committerRonghang Hu <huronghang@hotmail.com>2015-10-22 15:17:26 -0700
commit50a23b7ba2c8fe9ee2f6e115bdc5948ff82c194d (patch)
treede74d062ea5e59db2df7b8a6901941e122f21e95 /Makefile
parent9306302ae4f3c0fba812bbd3468881f99b59e04b (diff)
parent3e5f49435f95de57bffbde53d745dcb4a8f1f870 (diff)
downloadcaffe-50a23b7ba2c8fe9ee2f6e115bdc5948ff82c194d.tar.gz
caffe-50a23b7ba2c8fe9ee2f6e115bdc5948ff82c194d.tar.bz2
caffe-50a23b7ba2c8fe9ee2f6e115bdc5948ff82c194d.zip
Merge pull request #3186 from lionleaf/makefile_opencv_imgcodecs
Add opencv_imgcodecs to library path in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7cc73931..4a1d41d5 100644
--- a/Makefile
+++ b/Makefile
@@ -184,7 +184,12 @@ ifeq ($(USE_LMDB), 1)
LIBRARIES += lmdb
endif
ifeq ($(USE_OPENCV), 1)
- LIBRARIES += opencv_core opencv_highgui opencv_imgproc
+ LIBRARIES += opencv_core opencv_highgui opencv_imgproc
+
+ ifeq ($(OPENCV_VERSION), 3)
+ LIBRARIES += opencv_imgcodecs
+ endif
+
endif
PYTHON_LIBRARIES := boost_python python2.7
WARNINGS := -Wall -Wno-sign-compare