File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11set (TARGET llama-run)
22add_executable (${TARGET} run.cpp linenoise.cpp/linenoise.cpp)
3+
4+ # TODO: avoid copying this code block from common/CMakeLists.txt
5+ set (LLAMA_RUN_EXTRA_LIBS "" )
36if (LLAMA_CURL)
7+ find_package (CURL REQUIRED)
8+ target_compile_definitions (${TARGET} PUBLIC LLAMA_USE_CURL)
49 include_directories (${CURL_INCLUDE_DIRS} )
10+ find_library (CURL_LIBRARY curl REQUIRED)
11+ set (LLAMA_RUN_EXTRA_LIBS ${LLAMA_RUN_EXTRA_LIBS} ${CURL_LIBRARY} )
512endif ()
13+
614install (TARGETS ${TARGET} RUNTIME)
7- target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
15+ target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} ${LLAMA_RUN_EXTRA_LIBS} )
816target_compile_features (${TARGET} PRIVATE cxx_std_17)
You can’t perform that action at this time.
0 commit comments