mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-07 05:46:09 +03:00
chore(build): link standard libraries statically in MinGW
This commit is contained in:
parent
71a13b65df
commit
90a75ca55c
@ -75,6 +75,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GN
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
# MinGW Options
|
||||
if (WHOA_SYSTEM_WIN AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-static-libgcc -static-libstdc++ -static")
|
||||
endif ()
|
||||
|
||||
# OS defines
|
||||
if (WHOA_SYSTEM_WIN)
|
||||
# Avoid win32 header hell
|
||||
|
Loading…
Reference in New Issue
Block a user