From 3f15e097a01ed3b6c6f15c423b93b007a4e1289b Mon Sep 17 00:00:00 2001 From: jack <136876878@qq.com> Date: Tue, 28 Jul 2020 16:47:38 +0800 Subject: [PATCH] fix NOT statement --- deploy/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/cpp/CMakeLists.txt b/deploy/cpp/CMakeLists.txt index 920fbee..d1a3a4b 100644 --- a/deploy/cpp/CMakeLists.txt +++ b/deploy/cpp/CMakeLists.txt @@ -61,7 +61,7 @@ if (NOT DEFINED PADDLE_DIR OR ${PADDLE_DIR} STREQUAL "") message(FATAL_ERROR "please set PADDLE_DIR with -DPADDLE_DIR=/path/paddle_influence_dir") endif() -if (${CMAKE_SYSTEM_PROCESSOR} NOT STREQUAL "aarch64") +if (NOT (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")) if (NOT DEFINED OPENCV_DIR OR ${OPENCV_DIR} STREQUAL "") message(FATAL_ERROR "please set OPENCV_DIR with -DOPENCV_DIR=/path/opencv") endif() -- GitLab