We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f8d64 commit 29025d0Copy full SHA for 29025d0
examples/models/llama/CMakeLists.txt
@@ -219,6 +219,8 @@ endif()
219
target_include_directories(llama_main PUBLIC ${_common_include_directories})
220
target_link_libraries(llama_main PUBLIC llama_runner ${link_libraries})
221
target_compile_options(llama_main PUBLIC ${_common_compile_options})
222
-if(NOT APPLE)
+if(APPLE)
223
+ target_link_options(llama_main PRIVATE -Wl,-rpath,@executable_path)
224
+elseif(UNIX)
225
set_target_properties(llama_main PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'")
226
endif()
0 commit comments