diff --git a/ggml/cmake/ggml-config.cmake.in b/ggml/cmake/ggml-config.cmake.in index 9181fcf77..c0e95aa2f 100644 --- a/ggml/cmake/ggml-config.cmake.in +++ b/ggml/cmake/ggml-config.cmake.in @@ -15,6 +15,9 @@ find_library(GGML_LIBRARY ggml NO_CMAKE_FIND_ROOT_PATH) add_library(ggml::ggml UNKNOWN IMPORTED) +set_target_properties(ggml::ggml + PROPERTIES + INTERFACE_LINK_LIBRARIES "${GGML_LIBRARY}") find_library(GGML_BASE_LIBRARY ggml-base REQUIRED @@ -22,6 +25,9 @@ find_library(GGML_BASE_LIBRARY ggml-base NO_CMAKE_FIND_ROOT_PATH) add_library(ggml::ggml-base UNKNOWN IMPORTED) +set_target_properties(ggml::ggml-base + PROPERTIES + INTERFACE_LINK_LIBRARIES "${GGML_BASE_LIBRARY}") if (NOT GGML_SHARED_LIB) if (APPLE AND GGML_ACCELERATE)