Fix Intel compiler on Windows build
authorRoland Schulz <roland.schulz@intel.com>
Sat, 2 Feb 2019 17:41:02 +0000 (09:41 -0800)
committerRoland Schulz <roland.schulz@intel.com>
Sat, 2 Feb 2019 17:41:02 +0000 (09:41 -0800)
Change-Id: I8a89a08c945bb088e4b896b1bc4fedef2320cd01

cmake/gmxTestCompilerProblems.cmake

index c516188c0f120962b193503c84f0e377efa85587..53e534eb4fe4d7c73800380ed24656824e33156f 100644 (file)
@@ -53,7 +53,7 @@ macro(gmx_test_compiler_problems)
         if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5)
             set(cxx_required_version "GCC version 5")
         endif()
-    elseif(MSVC)
+    elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
         if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.15)
             set(cxx_required_version "Visual Studio 2017")
         endif()