noloader / cryptopp-cmake

CMake files for Crypto++ project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STREQUAL comparison with "MSVC" is too restrictive

abdes opened this issue · comments

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.