Merge pull request #26501 from asmorkalov:as/external_kleidicv

Fixed KLEIDICV_SOURCE_PATH handling for external KleidiCV
This commit is contained in:
Alexander Smorkalov 2024-11-21 18:45:14 +03:00 committed by GitHub
commit 7be5181bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,6 +165,7 @@ endif(WITH_CLP)
# --- ARM KleidiCV
if(WITH_KLEIDICV)
if(KLEIDICV_SOURCE_PATH AND EXISTS "${KLEIDICV_SOURCE_PATH}/adapters/opencv/CMakeLists.txt")
message(STATUS "Use external KleidiCV ${KLEIDICV_SOURCE_PATH}")
set(HAVE_KLEIDICV ON)
endif()
if(NOT HAVE_KLEIDICV)
@ -173,7 +174,5 @@ if(WITH_KLEIDICV)
if(KLEIDICV_SOURCE_PATH)
set(HAVE_KLEIDICV ON)
endif()
else()
set(HAVE_KLEIDICV OFF)
endif()
endif(WITH_KLEIDICV)