From ccb8e121d0d9f1a3c690d384d3d3ec32b7407fa4 Mon Sep 17 00:00:00 2001 From: wkcn Date: Thu, 14 Mar 2019 08:40:11 +0800 Subject: [PATCH] fix Makefile --- 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)