From: xiaofei Date: Thu, 6 Mar 2025 22:58:25 +0000 (+0800) Subject: cmake : fix undefined reference errors for std::filesystem in ggml (#12092) (llama... X-Git-Tag: upstream/0.0.1802~7 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=698499ff367567c403e43bde76017a370d725e7f;p=pkg%2Fggml%2Fsources%2Fggml cmake : fix undefined reference errors for std::filesystem in ggml (#12092) (llama/12094) Signed-off-by: Ray Lee Co-authored-by: Ray Lee --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cfd4ac54..52817510 100644 --- a/src/CMakeLists.txt +++ b/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)