From 1be40554af523f18640a3f33495d43de9f35ecfd Mon Sep 17 00:00:00 2001 From: "xiang.zhang" Date: Tue, 13 Sep 2022 11:10:39 +0800 Subject: [PATCH] Disable default path while search libtim-vx.so with TIMVX_INSTALL_DIR Signed-off-by: xiang.zhang --- cmake/OpenCVFindTIMVX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVFindTIMVX.cmake b/cmake/OpenCVFindTIMVX.cmake index 339f726bd9..ce084e45fb 100644 --- a/cmake/OpenCVFindTIMVX.cmake +++ b/cmake/OpenCVFindTIMVX.cmake @@ -30,7 +30,7 @@ if(TIMVX_INSTALL_DIR AND NOT BUILD_TIMVX) set(BUILD_TIMVX OFF) set(TIMVX_INC_DIR "${TIMVX_INSTALL_DIR}/include" CACHE INTERNAL "TIM-VX include directory") - find_library(TIMVX_LIB "tim-vx" PATHS "${TIMVX_INSTALL_DIR}/lib") + find_library(TIMVX_LIB "tim-vx" PATHS "${TIMVX_INSTALL_DIR}/lib" NO_DEFAULT_PATH) if(TIMVX_LIB) set(TIMVX_FOUND ON) else()