Browse Source

Set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to gcc and g++ for windows-mingw-release preset.

Prevents various situations where clang is chosen over gcc, which is unintended when using windows-mingw-release preset
Joakim Thorén 11 months ago
parent
commit
9a1e48c349
1 changed files with 3 additions and 1 deletions
  1. 3 1
      CMakePresets.json

+ 3 - 1
CMakePresets.json

@@ -134,7 +134,9 @@
             "description": "VCMI Windows Ninja using MinGW",
             "inherits": "default-release",
             "cacheVariables": {
-                "CMAKE_BUILD_TYPE": "Release"
+                "CMAKE_BUILD_TYPE": "Release",
+                "CMAKE_C_COMPILER": "gcc",
+                "CMAKE_CXX_COMPILER": "g++"
             }
         },
         {