Fix a bug that will prevent the extra flags from being honored.

svn path=/trunk/; revision=50876
This commit is contained in:
Jörg Mayer 2013-07-24 20:42:11 +00:00
parent ae6007ab11
commit 7a324cfcd6
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ include(CheckCSourceCompiles)
macro (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
set(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}")
set(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
set(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}" ${CMAKE_REQUIRED_DEFINITIONS})
# Normalize locale during test compilation.
set(_CheckCCompilerFlag_LOCALE_VARS LC_ALL LC_MESSAGES LANG)
foreach(v ${_CheckCCompilerFlag_LOCALE_VARS})