Skip searching root path for cross-compile builds (#10383)

This commit is contained in:
bandoti 2024-11-18 11:23:58 -04:00 committed by GitHub
parent f139d2ea61
commit 531cb1c233
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,11 +66,15 @@ endif()
find_library(ggml_LIBRARY ggml find_library(ggml_LIBRARY ggml
REQUIRED REQUIRED
HINTS ${LLAMA_LIB_DIR}) HINTS ${LLAMA_LIB_DIR}
NO_CMAKE_FIND_ROOT_PATH
)
find_library(llama_LIBRARY llama find_library(llama_LIBRARY llama
REQUIRED 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_link_deps "${ggml_LIBRARY}" "@GGML_LINK_LIBRARIES@")
set(_llama_transient_defines "@GGML_TRANSIENT_DEFINES@") set(_llama_transient_defines "@GGML_TRANSIENT_DEFINES@")