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/1.7.4+203~5 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=82f949665706d7ac8c92f16aeb85890059927c8e;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp 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/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)