Skip to content

Commit

Permalink
Fixed: macOS: install llama-cli in the bundle binary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Jul 21, 2024
1 parent 86326fa commit 4399c05
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,16 @@ add_subdirectory(cc-wrapper)

# include the yaml-cpp directory
include_directories("${CL_SRC_ROOT}/yaml-cpp/include")
if (UNIX)
# On Windows, this is default. Set it for Linux / macOS
if(UNIX)
# On Windows, this is default. Set it OFF for Linux / macOS as well
set(BUILD_SHARED_LIBS OFF)
endif()

if(APPLE)
set(CMAKE_INSTALL_PREFIX ${CL_INSTALL_BIN})
set(CMAKE_INSTALL_BINDIR "${CMAKE_INSTALL_PREFIX}")
endif()

add_subdirectory("${CL_SRC_ROOT}/submodules/llama.cpp")
add_subdirectory("${CL_SRC_ROOT}/submodules/llama.cpp/examples/main")

Expand Down

0 comments on commit 4399c05

Please sign in to comment.