I have a code that needs to run with MSVC as well as g++. Therefore I use Cmake. I want to use designated initializers which are part C++20. Since they exist since C99 they are already in g++ but in MSVC++ they are only available with the flag /std:latest.
What's the best way to enable this option for MSVC in a CMake file?