Ver Fonte

Tests: link with `-static` on MinGW

Benoit Blanchon há 4 anos atrás
pai
commit
986f77fa15
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      extras/CompileOptions.cmake

+ 6 - 0
extras/CompileOptions.cmake

@@ -92,3 +92,9 @@ if(MSVC)
 		)
 		)
 	endif()
 	endif()
 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()