From bc49850add0988d85efcbde1baa8e7371c81d422 Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Sun, 17 Aug 2014 20:36:05 -0400 Subject: [PATCH] Add Intel command line warning Fixes that build was printing a warning for scanner.cpp. Related to #1483 Change-Id: I8a30fce82ab7ef0bfe735630b1ce4d9bb636b36d --- CMakeLists.txt | 2 +- cmake/CheckCXXCompilerFlag.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0916056d26..9a4c089f52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -331,7 +331,7 @@ include(gmxManageOpenMP) # The cmake/Check{C,CXX}CompilerFlag.cmake files in the GROMACS distribution # are used with permission from CMake v3.0.0 so that GROMACS can detect # invalid options with the Intel Compilers, and we have added a line -# to detect warnings with the Fujitsu compilers on K computer. +# to detect warnings with the Fujitsu compilers on K computer and ICC. # CMake-3.0 also has a bug where the FAIL_REGEX pattern for AIX contains # a semicolon. Since this is also used as a separator in lists inside CMake, # that string ends up being split into two separate patterns, and the last diff --git a/cmake/CheckCXXCompilerFlag.cmake b/cmake/CheckCXXCompilerFlag.cmake index a11373eb3f..4340a47a41 100644 --- a/cmake/CheckCXXCompilerFlag.cmake +++ b/cmake/CheckCXXCompilerFlag.cmake @@ -61,6 +61,7 @@ MACRO (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT) FAIL_REGEX "option.*not supported" # Intel FAIL_REGEX "invalid argument .*option" # Intel FAIL_REGEX "ignoring option .*argument required" # Intel + FAIL_REGEX "ignoring option .*argument is of wrong type" # Intel FAIL_REGEX "[Uu]nknown option" # HP FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro FAIL_REGEX "command option .* is not recognized" # XL -- 2.22.0