summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/MSVC-CXX.cmake
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2017-09-01 21:33:12 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2017-09-01 21:33:12 (GMT)
commit227e35359535710a124b6dbc481af1c3382bd4dd (patch)
tree1e74765156c606cd7fd319cde9d95ba679c8c19a /Modules/Compiler/MSVC-CXX.cmake
parent671cc7490ca1dd732cbb3671d4732eb1ee1e180e (diff)
downloadCMake-227e35359535710a124b6dbc481af1c3382bd4dd.zip
CMake-227e35359535710a124b6dbc481af1c3382bd4dd.tar.gz
CMake-227e35359535710a124b6dbc481af1c3382bd4dd.tar.bz2
MSVC: Extend C++ language standard support to Visual Studio 2015 Update 3
Diffstat (limited to 'Modules/Compiler/MSVC-CXX.cmake')
-rw-r--r--Modules/Compiler/MSVC-CXX.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Compiler/MSVC-CXX.cmake b/Modules/Compiler/MSVC-CXX.cmake
index f478b85..3a63e3f 100644
--- a/Modules/Compiler/MSVC-CXX.cmake
+++ b/Modules/Compiler/MSVC-CXX.cmake
@@ -3,7 +3,10 @@
include(Compiler/CMakeCommonCompilerMacros)
-if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.10.25017)
+if ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0.24215.1 AND
+ CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.10) OR
+ CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.10.25017)
+
# VS 2015 Update 3 and above support language standard level flags,
# with the default and minimum level being C++14.
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "")