Add Intel command line warning
authorRoland Schulz <roland@utk.edu>
Mon, 18 Aug 2014 00:36:05 +0000 (20:36 -0400)
committerRoland Schulz <roland@utk.edu>
Mon, 18 Aug 2014 00:39:56 +0000 (20:39 -0400)
Fixes that build was printing a warning for scanner.cpp.

Related to #1483

Change-Id: I8a30fce82ab7ef0bfe735630b1ce4d9bb636b36d

CMakeLists.txt
cmake/CheckCXXCompilerFlag.cmake

index 0916056d26691de6c8d9e87870e75170b1422f62..9a4c089f52d229a705e0c56240e6435298918f9d 100644 (file)
@@ -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
index a11373eb3f06a2cd75cdfa8d2f7e16ea2b96cb41..4340a47a414a9fa3948adcdd19107b9ba43c977c 100644 (file)
@@ -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