Skip to content

Commit b08d6d5

Browse files
hbuxiaofeihburaylee
authored andcommitted
cmake : fix undefined reference errors for std::filesystem in ggml (ggml-org#12092) (ggml-org#12094)
Signed-off-by: Ray Lee <[email protected]> Co-authored-by: Ray Lee <[email protected]>
1 parent 82ec524 commit b08d6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ add_library(ggml
236236
target_link_libraries(ggml PUBLIC ggml-base)
237237

238238
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
239-
target_link_libraries(ggml PRIVATE dl)
239+
target_link_libraries(ggml PRIVATE dl stdc++fs)
240240
endif()
241241

242242
function(ggml_add_backend_library backend)

0 commit comments

Comments
 (0)