Disable default path while search libtim-vx.so with TIMVX_INSTALL_DIR

Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
pull/22508/head
xiang.zhang 2 years ago
parent 46d988e2cb
commit 1be40554af
  1. 2
      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()

Loading…
Cancel
Save