|
|
@@ -58,6 +58,12 @@ if (MSVC)
|
|
|
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/bigobj>")
|
|
|
endif()
|
|
|
|
|
|
+if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
|
|
+ set(LLAMA_TOOLS_INSTALL_DEFAULT OFF)
|
|
|
+else()
|
|
|
+ set(LLAMA_TOOLS_INSTALL_DEFAULT ${LLAMA_STANDALONE})
|
|
|
+endif()
|
|
|
+
|
|
|
#
|
|
|
# option list
|
|
|
#
|
|
|
@@ -82,6 +88,7 @@ option(LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALONE})
|
|
|
option(LLAMA_BUILD_TOOLS "llama: build tools" ${LLAMA_STANDALONE})
|
|
|
option(LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE})
|
|
|
option(LLAMA_BUILD_SERVER "llama: build server example" ${LLAMA_STANDALONE})
|
|
|
+option(LLAMA_TOOLS_INSTALL "llama: install tools" ${LLAMA_TOOLS_INSTALL_DEFAULT})
|
|
|
|
|
|
# 3rd party libs
|
|
|
option(LLAMA_CURL "llama: use libcurl to download model from an URL" ON)
|