From: Maksim Shabunin Date: Tue, 22 May 2018 11:40:03 +0000 (+0300) Subject: dnn: allow setting IE paths via command line X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~623^2~4^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=020ad1ac7683954c1c51d5bd13ca093a1b9e06a4;p=platform%2Fupstream%2Fopencv.git dnn: allow setting IE paths via command line --- diff --git a/cmake/OpenCVDetectInferenceEngine.cmake b/cmake/OpenCVDetectInferenceEngine.cmake index 71bac96..d941ac2 100644 --- a/cmake/OpenCVDetectInferenceEngine.cmake +++ b/cmake/OpenCVDetectInferenceEngine.cmake @@ -30,7 +30,7 @@ if(NOT INF_ENGINE_ROOT_DIR OR NOT EXISTS "${INF_ENGINE_ROOT_DIR}/include/inferen list(APPEND ie_root_paths "${INTEL_CVSDK_DIR}/inference_engine") endif() - if(WITH_INF_ENGINE AND NOT ie_root_paths) + if(NOT ie_root_paths) list(APPEND ie_root_paths "/opt/intel/deeplearning_deploymenttoolkit/deployment_tools/inference_engine") endif() diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index fbcdd78..9549439 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -80,7 +80,7 @@ else() set(sources_options EXCLUDE_OPENCL) endif() -if(WITH_INF_ENGINE AND HAVE_INF_ENGINE) +if(HAVE_INF_ENGINE) add_definitions(-DHAVE_INF_ENGINE=1) list(APPEND include_dirs ${INF_ENGINE_INCLUDE_DIRS}) list(APPEND libs ${INF_ENGINE_LIBRARIES})