STREQUAL comparison with "MSVC" is too restrictive
abdes opened this issue · comments
Abdessattar Sassi commented
Build environments that return a full string for MSVC including the version info will fail due to the comparison with STREQUAL.
A better approach is to use the cmake built-in variable 'MSVC' which is defined if the compiler is MSVC or an equivalent compiler.