From a88904a54635b6e37d5421f92e2275ddea12d18b Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Tue, 22 Apr 2025 01:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DMinGW=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/project_cpp_standard.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/project_cpp_standard.cmake b/cmake/project_cpp_standard.cmake index 4b6bc31..b2b637c 100644 --- a/cmake/project_cpp_standard.cmake +++ b/cmake/project_cpp_standard.cmake @@ -75,9 +75,9 @@ function(set_cpp_standard standard) # link_libraries() 会影响后续所有 target,更推荐使用 target_link_libraries() # 这里暂时保留 link_libraries(),但建议后续根据具体 target 调整 # 尝试链接 stdc++fs,这在较新的 MinGW 中更常见用于 - link_libraries(-lstdc++fs) +# link_libraries(-lstdc++fs) # 如果链接 -lstdc++fs 失败,可以尝试回退到 -lstdc++exp -# link_libraries(-lstdc++exp) + link_libraries(-lstdc++exp) endif() endif()