Link MinGW runtime statically
This commit is contained in:
+9
-1
@@ -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)
|
||||
add_executable(test_app main.cpp)
|
||||
|
||||
if(MINGW)
|
||||
target_link_options(test_app PRIVATE
|
||||
-static
|
||||
-static-libgcc
|
||||
-static-libstdc++
|
||||
)
|
||||
endif()
|
||||
Reference in New Issue
Block a user