Besides MSVC (and compatible compilers like clang-cl) there's also GCC (MinGW) and GNU-like Clang on Windows. Therefore setting command line flags in CMake should check for MSVC instead of $<PLATFORM_ID:Windows>.
Besides MSVC (and compatible compilers like clang-cl) there's also GCC (MinGW) and GNU-like Clang on Windows. Therefore setting command line flags in CMake should check for MSVC instead of $<PLATFORM_ID:Windows>.