Skip to content

Commit 1760b92

Browse files
committed
Link ggml/ggml-base libraries to their targets
1 parent 817cff1 commit 1760b92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ggml/cmake/ggml-config.cmake.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@ find_library(GGML_LIBRARY ggml
1515
NO_CMAKE_FIND_ROOT_PATH)
1616

1717
add_library(ggml::ggml UNKNOWN IMPORTED)
18+
set_target_properties(ggml::ggml
19+
PROPERTIES
20+
INTERFACE_LINK_LIBRARIES "${GGML_LIBRARY}")
1821

1922
find_library(GGML_BASE_LIBRARY ggml-base
2023
REQUIRED
2124
HINTS ${GGML_LIB_DIR}
2225
NO_CMAKE_FIND_ROOT_PATH)
2326

2427
add_library(ggml::ggml-base UNKNOWN IMPORTED)
28+
set_target_properties(ggml::ggml-base
29+
PROPERTIES
30+
INTERFACE_LINK_LIBRARIES "${GGML_BASE_LIBRARY}")
2531

2632
if (NOT GGML_SHARED_LIB)
2733
if (APPLE AND GGML_ACCELERATE)

0 commit comments

Comments
 (0)