From 243ca4fc0c88ad13f117033d6631f34e646f6981 Mon Sep 17 00:00:00 2001 From: jack <136876878@qq.com> Date: Tue, 28 Jul 2020 16:37:33 +0800 Subject: [PATCH] fix opencv_dir not found in jetson --- deploy/cpp/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/cpp/CMakeLists.txt b/deploy/cpp/CMakeLists.txt index d5b0a45..920fbee 100644 --- a/deploy/cpp/CMakeLists.txt +++ b/deploy/cpp/CMakeLists.txt @@ -61,8 +61,10 @@ 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 (NOT DEFINED OPENCV_DIR OR ${OPENCV_DIR} STREQUAL "") +if (${CMAKE_SYSTEM_PROCESSOR} NOT STREQUAL "aarch64") + if (NOT DEFINED OPENCV_DIR OR ${OPENCV_DIR} STREQUAL "") message(FATAL_ERROR "please set OPENCV_DIR with -DOPENCV_DIR=/path/opencv") + endif() endif() include_directories("${CMAKE_SOURCE_DIR}/") -- GitLab