You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by wk...@apache.org on 2019/03/14 08:00:59 UTC
[incubator-mxnet] branch master updated: fix Makefile (#14424)
This is an automated email from the ASF dual-hosted git repository.
wkcn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new ae55b75 fix Makefile (#14424)
ae55b75 is described below
commit ae55b758b019893a3f36c916bdcfae106fea8574
Author: JackieWu <wk...@live.cn>
AuthorDate: Thu Mar 14 16:00:36 2019 +0800
fix Makefile (#14424)
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 29443eb..8ca7080 100644
--- a/Makefile
+++ b/Makefile
@@ -147,9 +147,9 @@ endif
# setup opencv
ifeq ($(USE_OPENCV), 1)
CFLAGS += -DMXNET_USE_OPENCV=1
- ifneq ($(USE_OPENCV_INC_PATH), NONE)
+ ifneq ($(filter-out NONE, $(USE_OPENCV_INC_PATH)),)
CFLAGS += -I$(USE_OPENCV_INC_PATH)/include
- ifeq ($(USE_OPENCV_LIB_PATH), NONE)
+ ifeq ($(filter-out NONE, $(USE_OPENCV_LIB_PATH)),)
$(error Please add the path of OpenCV shared library path into `USE_OPENCV_LIB_PATH`, when `USE_OPENCV_INC_PATH` is not NONE)
endif
LDFLAGS += -L$(USE_OPENCV_LIB_PATH)