]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cmake: fix intel compiler detection 4877/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 16 Aug 2017 19:58:51 +0000 (15:58 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 16 Aug 2017 19:58:51 +0000 (15:58 -0400)
cmake/checks/check_01_cxx_features.cmake
cmake/setup_compiler_flags_intel.cmake

index 8338513facd53e75d3e700791940b5e49b9f611e..50bfa71aa57f6dbedba6645d60dd2ef87d183d2d 100644 (file)
@@ -264,7 +264,7 @@ CHECK_CXX_SOURCE_COMPILES(
 
   // Check the version language macro, but skip MSVC because
   // MSVC reports 199711 even in MSVC 2017.
-  #if __cplusplus < 201103L && !defined(_MSC_VER)
+  #if __cplusplus < 201103L && !defined(_MSC_VER) && !defined(__INTEL_COMPILER)
   #  error \"insufficient support for C++11\"
   #endif
 
index 435a6d7120990533c568acb8d2d2178daa381733..b22cc9de59000d70bc94733b73acdb4c681bae2a 100644 (file)
 # editing this file.
 #
 
-IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10.0" )
+IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0" )
   MESSAGE(WARNING "\n"
     "You're using an old version of the Intel C++ Compiler (icc/icpc)!\n"
-    "It is strongly recommended to use at least version 10.\n"
+    "It is strongly recommended to use at least version 15.\n"
     )
 ENDIF()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.