diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c1f07b862392..8467767adc501 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,7 @@ set(LLAMA_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Location o set(LLAMA_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Location of library files") set(LLAMA_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location of binary files") +get_directory_property(GGML_EXTRA_LIBS DIRECTORY ggml/src DEFINITION GGML_EXTRA_LIBS) get_directory_property(GGML_TRANSIENT_DEFINES DIRECTORY ggml/src COMPILE_DEFINITIONS) get_directory_property(LLAMA_TRANSIENT_DEFINES COMPILE_DEFINITIONS)