From f4f22ff3943253285933b02536c9d6d381a1e056 Mon Sep 17 00:00:00 2001 From: shewu-quic Date: Mon, 1 Sep 2025 10:55:39 +0800 Subject: [PATCH] Qualcomm AI Engine Direct - Fixed build error for llama runner on Mac --- examples/models/llama/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/models/llama/CMakeLists.txt b/examples/models/llama/CMakeLists.txt index a485244f9a7..46046161dd0 100644 --- a/examples/models/llama/CMakeLists.txt +++ b/examples/models/llama/CMakeLists.txt @@ -219,4 +219,6 @@ endif() target_include_directories(llama_main PUBLIC ${_common_include_directories}) target_link_libraries(llama_main PUBLIC llama_runner ${link_libraries}) target_compile_options(llama_main PUBLIC ${_common_compile_options}) -set_target_properties(llama_main PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'") +if(NOT APPLE) + set_target_properties(llama_main PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'") +endif()