noloader / cryptopp-cmake

CMake files for Crypto++ project
BSD 3-Clause "New" or "Revised" License
92 stars 67 forks source link

STREQUAL comparison with "MSVC" is too restrictive #24

Closed abdes closed 6 years ago

abdes commented 6 years ago

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.