Tests: link with -static on MinGW

This commit is contained in:
Benoit Blanchon
2022-02-25 10:28:22 +01:00
parent f831ed395d
commit 986f77fa15

View File

@ -92,3 +92,9 @@ if(MSVC)
)
endif()
endif()
if(MINGW)
# Static link on MinGW to avoid linking with the wrong DLLs when multiple
# versions are installed.
add_link_options(-static)
endif()