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