Commit c97c8c28 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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
parent b003b0c9
...@@ -13,7 +13,8 @@ SET(fail_patterns ...@@ -13,7 +13,8 @@ SET(fail_patterns
FAIL_REGEX "warning:.*redefined" FAIL_REGEX "warning:.*redefined"
FAIL_REGEX "[Ww]arning: [Oo]ption" 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) MACRO (MY_CHECK_C_COMPILER_FLAG flag)
STRING(REGEX REPLACE "[-,= +]" "_" result "HAVE_C_${flag}") STRING(REGEX REPLACE "[-,= +]" "_" result "HAVE_C_${flag}")
SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") SET(SAVE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment