From e2be20e4bb0a0302a3abc3c3459056a5dbfc29e4 Mon Sep 17 00:00:00 2001 From: JackieWu Date: Thu, 14 Mar 2019 16:00:36 +0800 Subject: [PATCH] fix Makefile (#14424) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 29443eba2275..8ca708018b13 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)