Merge pull request #22508 from sunshinemyson:TIMVX

Disable default path while search libtim-vx.so with TIMVX_INSTALL_DIR
pull/22227/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 0f6b01a531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmake/OpenCVFindTIMVX.cmake

@ -30,7 +30,7 @@ if(TIMVX_INSTALL_DIR AND NOT BUILD_TIMVX)
set(BUILD_TIMVX OFF) set(BUILD_TIMVX OFF)
set(TIMVX_INC_DIR "${TIMVX_INSTALL_DIR}/include" CACHE INTERNAL "TIM-VX include directory") 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) if(TIMVX_LIB)
set(TIMVX_FOUND ON) set(TIMVX_FOUND ON)
else() else()

Loading…
Cancel
Save