Merge pull request #22508 from sunshinemyson:TIMVX

Disable default path while search libtim-vx.so with TIMVX_INSTALL_DIR
This commit is contained in:
Alexander Smorkalov 2022-09-14 09:16:25 +03:00 committed by GitHub
commit 0f6b01a531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()