mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-17103 MY_CHECK_{C,CXX}_COMPILER_FLAG do not work on with localized gcc
messages Force LANG=C for MY_CHECK_{C,CXX}_COMPILER_FLAG
This commit is contained in:
parent
b003b0c934
commit
c97c8c28b5
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@ SET(fail_patterns
|
|||
FAIL_REGEX "warning:.*redefined"
|
||||
FAIL_REGEX "[Ww]arning: [Oo]ption"
|
||||
)
|
||||
|
||||
#The regex patterns above are not localized, thus LANG=C
|
||||
SET(ENV{LANG} C)
|
||||
MACRO (MY_CHECK_C_COMPILER_FLAG flag)
|
||||
STRING(REGEX REPLACE "[-,= +]" "_" result "HAVE_C_${flag}")
|
||||
SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
|
||||
|
|
Loading…
Add table
Reference in a new issue