Skip to content
Snippets Groups Projects
Commit d2fb1264 authored by Brad King's avatar Brad King
Browse files

Merge branch 'doc-prefer-MSVC_VERSION' into release

parents 4fbae41f fecf8467
No related branches found
No related tags found
No related merge requests found
......@@ -4,3 +4,5 @@ MSVC
``True`` when using Microsoft Visual C++.
Set to ``true`` when the compiler is some version of Microsoft Visual C++.
See also the :variable:`MSVC_VERSION` variable.
MSVC10
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v100`` toolset
(``cl`` version 16) or another compiler that simulates it.
MSVC11
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v110`` toolset
(``cl`` version 17) or another compiler that simulates it.
MSVC12
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v120`` toolset
(``cl`` version 18) or another compiler that simulates it.
MSVC14
------
``True`` when using the Microsoft Visual Studio ``v140`` toolset
(``cl`` version 19) or another compiler that simulates it.
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v140`` or ``v141``
toolset (``cl`` version 19) or another compiler that simulates it.
MSVC60
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using Microsoft Visual C++ 6.0.
Set to ``true`` when the compiler is version 6.0 of Microsoft Visual C++.
MSVC70
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using Microsoft Visual C++ 7.0.
Set to ``true`` when the compiler is version 7.0 of Microsoft Visual C++.
MSVC71
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using Microsoft Visual C++ 7.1.
Set to ``true`` when the compiler is version 7.1 of Microsoft Visual C++.
MSVC80
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v80`` toolset
(``cl`` version 14) or another compiler that simulates it.
MSVC90
------
Discouraged. Use the :variable:`MSVC_VERSION` variable instead.
``True`` when using the Microsoft Visual Studio ``v90`` toolset
(``cl`` version 15) or another compiler that simulates it.
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment