diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-11 13:05:03 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2015-03-11 13:05:03 +0400 |
commit | 52a1b5a8c23ebd068172c3c18a4f11c690fd1a2c (patch) | |
tree | b81e86288e9d4838d68464fa5d9c0301e825d117 /cmake | |
parent | 190858d996e7dc90e01fe8a5e7daec6af0012b23 (diff) | |
download | mariadb-git-52a1b5a8c23ebd068172c3c18a4f11c690fd1a2c.tar.gz |
MY_CHECK_AND_SET_COMPILER_FLAG changes
* watch for "redefined macro" warning
* don't enable -D_FORTIFY_SOURCE=2 in debug builds (it requires -O)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/check_compiler_flag.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/check_compiler_flag.cmake b/cmake/check_compiler_flag.cmake index 25e4af23dd9..8eb6ed2176e 100644 --- a/cmake/check_compiler_flag.cmake +++ b/cmake/check_compiler_flag.cmake @@ -9,6 +9,7 @@ SET(fail_patterns FAIL_REGEX "unrecognized .*option" FAIL_REGEX "ignoring unknown option" FAIL_REGEX "warning:.*ignored" + FAIL_REGEX "warning:.*redefined" FAIL_REGEX "[Ww]arning: [Oo]ption" ) |