From c5314a4100bb2d171b62fdcf73f6c0cc14feab30 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 23 Apr 2018 13:45:08 -0400 Subject: [PATCH] blacklist MSVC 2015 or older because we can no longer support it --- cmake/setup_compiler_flags_msvc.cmake | 12 ++++++++++++ doc/readme.html | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cmake/setup_compiler_flags_msvc.cmake b/cmake/setup_compiler_flags_msvc.cmake index 99a7c1b0f2..14419f2f56 100644 --- a/cmake/setup_compiler_flags_msvc.cmake +++ b/cmake/setup_compiler_flags_msvc.cmake @@ -27,6 +27,18 @@ # # ######################## +# Notice how intelligent the version numbering of "Microsoft Visual Studio 2017 +# version 15.0" is, the c++ compiler is advertised as "MSVC++ 14.1" but the +# version information is 19.10.x (this is the numbering used by CMake), see +# https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering +IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.10" ) + MESSAGE(FATAL_ERROR "\n" + "You're using an old version of the Visual Studio C++ Compiler!\n" + "You need at least version Visual Studio 2017.\n" + ) +ENDIF() + + # enable exception handling: ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/EHsc") diff --git a/doc/readme.html b/doc/readme.html index d5d208adbe..4013dca300 100644 --- a/doc/readme.html +++ b/doc/readme.html @@ -72,7 +72,7 @@
  • Mac OS X: GCC version 4.8 or later; Clang version 3.3 or later. Please see the deal.II Wiki for installation instructions.
  • -
  • Windows: experimental support for Visual Studio 2015 and 2017. +
  • Windows: experimental support for Visual Studio 2017. Please have a look at the FAQ and at the