MSVC: Exclude future cl 20+ from MSVC14 variable

This commit is contained in:
Brad King
2017-03-22 11:17:39 -04:00
parent 66542b6636
commit 49a60b70e7

View File

@@ -78,7 +78,9 @@ if(NOT MSVC_VERSION)
set(MSVC90)
set(CMAKE_COMPILER_2005)
set(CMAKE_COMPILER_SUPPORTS_PDBTYPE)
if(NOT "${_compiler_version}" VERSION_LESS 19)
if(NOT "${_compiler_version}" VERSION_LESS 20)
# We no longer provide per-version variables. Use MSVC_VERSION instead.
elseif(NOT "${_compiler_version}" VERSION_LESS 19)
set(MSVC14 1)
elseif(NOT "${_compiler_version}" VERSION_LESS 18)
set(MSVC12 1)