From: xiaofei Date: Thu, 6 Mar 2025 22:58:25 +0000 (+0800) Subject: cmake : fix undefined reference errors for std::filesystem in ggml (#12092) (#12094) X-Git-Tag: upstream/0.0.4853~10 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=776f9e59cc8a85e840d1d4af8540d199c77190ac;p=pkg%2Fggml%2Fsources%2Fllama.cpp cmake : fix undefined reference errors for std::filesystem in ggml (#12092) (#12094) Signed-off-by: Ray Lee Co-authored-by: Ray Lee --- diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index cfd4ac54..52817510 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -236,7 +236,7 @@ add_library(ggml target_link_libraries(ggml PUBLIC ggml-base) if (CMAKE_SYSTEM_NAME MATCHES "Linux") - target_link_libraries(ggml PRIVATE dl) + target_link_libraries(ggml PRIVATE dl stdc++fs) endif() function(ggml_add_backend_library backend)