message: Windows: fix incorrect CRT flags with Visual Studio generators
diff: @@ -131,27 +131,35 @@ if (WIN32)
  # __declspec(dllexport) in front of each functions).
  set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
  + # The CMAKE_CXX_FLAGS vars can be overriden by some Visual Studio generators, so we use an alternative
  + # global method here:
  if (${USE_STATIC_CRT})
  - set(CRT_FLAGS_RELEASE "/MT")
  - set(CRT_FLAGS_DEBUG "/MTd")
  + add_compile_options(
  + $<$<CONFIG:>:/MT>
  + $<$<CONFIG:Debug>:/MTd>
  + $<$<CONFIG:Release>:/MT>
  + )
  else()
  - set(CRT_FLAGS_RELEASE "/MD")
  - set(CRT_FLAGS_DEBUG "/MDd")
  + add_compile_options(
  + $<$<CONFIG:>:/MD>
  + $<$<CONFIG:Debug>:/MDd>
  + $<$<CONFIG:Release>:/MD>
  + )
  endif()
  # TODO: Figure out why pdb generation messes with incremental compilaton.
  # IN RELEASE_WITH_DEBUG_INFO, generate debug info in .obj, no in pdb.
  - set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${CRT_FLAGS_RELEASE} /Z7")
  - set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${CRT_FLAGS_RELEASE} /Z7")
  + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Z7")
  + set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /Z7")
  # In RELEASE, also generate PDBs.
  - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CRT_FLAGS_RELEASE} /Zi")
  - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${CRT_FLAGS_RELEASE} /Zi")
  + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
  + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Zi")
  # In DEBUG, avoid generating a PDB file which seems to mess with incremental compilation.
  # Instead generate debug info directly inside obj files.
  - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CRT_FLAGS_DEBUG} /Z7")
  - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${CRT_FLAGS_DEBUG} /Z7")
  + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Z7")
  + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /Z7")
  # Special settings when building on CI.
  if (${FILAMENT_WINDOWS_CI_BUILD})
  