Skip to content

Commit 33d557e

Browse files
committed
ggml : fix undefined reference to std::filesystem(#10978)
add link library stdc++fs for ggml.
1 parent 9ba399d commit 33d557e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml/src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ target_link_libraries(ggml PUBLIC ggml-base)
226226

227227
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
228228
target_link_libraries(ggml PRIVATE dl)
229+
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
230+
target_link_libraries(ggml PRIVATE stdc++fs)
231+
endif()
229232
endif()
230233

231234
function(ggml_add_backend_library backend)

0 commit comments

Comments
 (0)