From fa7241c0a7339fc8ec440565d70d7e50446967d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D0=B8=D0=B9=20=D0=9F?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= Date: Fri, 1 May 2026 22:21:51 +0300 Subject: [PATCH] Link MinGW runtime statically --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c40128a..3b33868 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,4 +5,12 @@ project(Testing LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) -add_executable(test_app main.cpp) \ No newline at end of file +add_executable(test_app main.cpp) + +if(MINGW) + target_link_options(test_app PRIVATE + -static + -static-libgcc + -static-libstdc++ + ) +endif() \ No newline at end of file