From 1760b92f6f1932abb383f8535c348c287e84abf6 Mon Sep 17 00:00:00 2001 From: Mason M Date: Thu, 23 Jan 2025 15:10:04 -0400 Subject: [PATCH] Link ggml/ggml-base libraries to their targets --- ggml/cmake/ggml-config.cmake.in | 6 ++++++ 1 file changed, 6 insertions(+) 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)