Skip to content

Commit

Permalink
Skip searching root path for cross-compile builds (ggerganov#10383)
Browse files Browse the repository at this point in the history
  • Loading branch information
bandoti authored Nov 18, 2024
1 parent f139d2e commit 531cb1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/llama-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ endif()

find_library(ggml_LIBRARY ggml
REQUIRED
HINTS ${LLAMA_LIB_DIR})
HINTS ${LLAMA_LIB_DIR}
NO_CMAKE_FIND_ROOT_PATH
)

find_library(llama_LIBRARY llama
REQUIRED
HINTS ${LLAMA_LIB_DIR})
HINTS ${LLAMA_LIB_DIR}
NO_CMAKE_FIND_ROOT_PATH
)

set(_llama_link_deps "${ggml_LIBRARY}" "@GGML_LINK_LIBRARIES@")
set(_llama_transient_defines "@GGML_TRANSIENT_DEFINES@")
Expand Down

0 comments on commit 531cb1c

Please sign in to comment.