blob: 19b2bbcf3158ff519a01336e62b73973582781d9 [file] [log] [blame]
Vince Harron091caaf2015-06-02 18:37:41 -07001
2#=============================================================================
3# Copyright 2006-2011 Kitware, Inc.
4# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
5# Copyright 2011 Matthias Kretz <kretz@kde.org>
6# Copyright 2013 Rolf Eike Beer <eike@sf-mail.de>
7#
8# Distributed under the OSI-approved BSD License (the "License");
9# see accompanying file Copyright.txt for details.
10#
11# This software is distributed WITHOUT ANY WARRANTY; without even the
12# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13# See the License for more information.
14#=============================================================================
15# (To distribute this file outside of CMake, substitute the full
16# License text for the above reference.)
17
18# Do NOT include this module directly into any of your code. It is meant as
19# a library for Check*CompilerFlag.cmake modules. It's content may change in
20# any way between releases.
21
22macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
23 set(${_VAR}
24 FAIL_REGEX "unrecognized .*option" # GNU
25 FAIL_REGEX "unknown .*option" # Clang
26 FAIL_REGEX "ignoring unknown option" # MSVC
27 FAIL_REGEX "warning D9002" # MSVC, any lang
28 FAIL_REGEX "option.*not supported" # Intel
29 FAIL_REGEX "invalid argument .*option" # Intel
30 FAIL_REGEX "ignoring option .*argument required" # Intel
31 FAIL_REGEX "ignoring option .*argument is of wrong type" # Intel
32 FAIL_REGEX "[Uu]nknown option" # HP
33 FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
34 FAIL_REGEX "command option .* is not recognized" # XL
35 FAIL_REGEX "command option .* contains an incorrect subargument" # XL
36 FAIL_REGEX "not supported in this configuration. ignored" # AIX
37 FAIL_REGEX "File with unknown suffix passed to linker" # PGI
38 FAIL_REGEX "WARNING: unknown flag:" # Open64
39 FAIL_REGEX "Incorrect command line option:" # Borland
40 FAIL_REGEX "Warning: illegal option" # SunStudio 12
41 FAIL_REGEX "[Ww]arning: Invalid suboption" # Fujitsu
42 )
43endmacro ()