2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
2013-08-09 01:13:52 +04:00
|
|
|
|
|
|
|
|
|
|
|
# Do NOT include this module directly into any of your code. It is meant as
|
|
|
|
# a library for Check*CompilerFlag.cmake modules. It's content may change in
|
|
|
|
# any way between releases.
|
|
|
|
|
|
|
|
macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
|
|
|
|
set(${_VAR}
|
2015-02-03 03:07:04 +03:00
|
|
|
FAIL_REGEX "[Uu]nrecogni[sz]ed .*option" # GNU, NAG
|
2013-08-09 01:13:52 +04:00
|
|
|
FAIL_REGEX "unknown .*option" # Clang
|
2015-04-22 17:58:08 +03:00
|
|
|
FAIL_REGEX "optimization flag .* not supported" # Clang
|
2016-03-31 15:50:48 +03:00
|
|
|
FAIL_REGEX "unknown argument ignored" # Clang (cl)
|
2015-02-03 03:07:04 +03:00
|
|
|
FAIL_REGEX "ignoring unknown option" # MSVC, Intel
|
2013-08-09 01:13:52 +04:00
|
|
|
FAIL_REGEX "warning D9002" # MSVC, any lang
|
|
|
|
FAIL_REGEX "option.*not supported" # Intel
|
|
|
|
FAIL_REGEX "invalid argument .*option" # Intel
|
|
|
|
FAIL_REGEX "ignoring option .*argument required" # Intel
|
2014-08-19 01:14:00 +04:00
|
|
|
FAIL_REGEX "ignoring option .*argument is of wrong type" # Intel
|
2013-08-09 01:13:52 +04:00
|
|
|
FAIL_REGEX "[Uu]nknown option" # HP
|
|
|
|
FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
|
|
|
|
FAIL_REGEX "command option .* is not recognized" # XL
|
|
|
|
FAIL_REGEX "command option .* contains an incorrect subargument" # XL
|
2014-07-30 23:19:48 +04:00
|
|
|
FAIL_REGEX "not supported in this configuration. ignored" # AIX
|
2013-08-09 01:13:52 +04:00
|
|
|
FAIL_REGEX "File with unknown suffix passed to linker" # PGI
|
2015-02-03 03:07:04 +03:00
|
|
|
FAIL_REGEX "[Uu]nknown switch" # PGI
|
2013-08-09 01:13:52 +04:00
|
|
|
FAIL_REGEX "WARNING: unknown flag:" # Open64
|
|
|
|
FAIL_REGEX "Incorrect command line option:" # Borland
|
2013-09-28 03:48:26 +04:00
|
|
|
FAIL_REGEX "Warning: illegal option" # SunStudio 12
|
2014-07-31 13:21:41 +04:00
|
|
|
FAIL_REGEX "[Ww]arning: Invalid suboption" # Fujitsu
|
2013-08-09 01:13:52 +04:00
|
|
|
)
|
|
|
|
endmacro ()
|