From e1c07b897af9aca972449cab610f6a0789135b5b Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 3 May 2024 15:57:41 +0800 Subject: [PATCH] fix: only copy `libqnnhtpv73.cat` for Windows --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7a2418..d2092fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,11 +118,11 @@ if (LLAMA_QNN) file(COPY ${QNN_SO_FILES} DESTINATION ${PLATFORM_BINARY_DIR}) - file( - GLOB QNN_EXTRA_FILES - "${QNN_ROOT}/lib/hexagon-v*/unsigned/libQnn*Skel.so" - "${QNN_ROOT}/lib/hexagon-v73/unsigned/libqnnhtpv73.cat" - ) + file(GLOB QNN_EXTRA_FILES "${QNN_ROOT}/lib/hexagon-v*/unsigned/libQnn*Skel.so") + + if (PLATFORM STREQUAL "win32") + list(APPEND QNN_EXTRA_FILES "${QNN_ROOT}/lib/hexagon-v73/unsigned/libqnnhtpv73.cat") + endif() file(COPY ${QNN_EXTRA_FILES} DESTINATION ${PLATFORM_BINARY_DIR})