diff options
author | Brad King <brad.king@kitware.com> | 2022-04-07 19:00:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-07 19:07:48 (GMT) |
commit | 9dd585d12c54f6d0768aea6526ea627f81f436ad (patch) | |
tree | eec63dd00ceee7b4b32a33d74f1fbac438d7eef7 /Modules/Internal | |
parent | e9236b6641d9279e353be8a08ffec3be6168c7df (diff) | |
download | CMake-9dd585d12c54f6d0768aea6526ea627f81f436ad.zip CMake-9dd585d12c54f6d0768aea6526ea627f81f436ad.tar.gz CMake-9dd585d12c54f6d0768aea6526ea627f81f436ad.tar.bz2 |
CheckCompilerFlag: Fix regression in locale environment preservation
Fix a typo from commit 660e0d80ae (internal/CheckCompilerFlag: rely on
common configuration, 2022-01-12, v3.23.0-rc1~124^2~1) that caused
locale environment variables to not be restored after they are set
during the check.
Diffstat (limited to 'Modules/Internal')
-rw-r--r-- | Modules/Internal/CheckFlagCommonConfig.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Internal/CheckFlagCommonConfig.cmake b/Modules/Internal/CheckFlagCommonConfig.cmake index 3934c02..c011c24 100644 --- a/Modules/Internal/CheckFlagCommonConfig.cmake +++ b/Modules/Internal/CheckFlagCommonConfig.cmake @@ -59,8 +59,8 @@ macro(CMAKE_CHECK_FLAG_COMMON_INIT _FUNC _LANG _SRC _PATTERNS) return() endif() # Normalize locale during test compilation. - set(_locale_vars LC_ALL LC_MESSAGES LANG) - foreach(v IN LISTS _locale_vars) + set(_CFCC_locale_vars LC_ALL LC_MESSAGES LANG) + foreach(v IN LISTS _CFCC_locale_vars) set(_CMAKE_CHECK_FLAG_COMMON_CONFIG_locale_vars_saved_${v} "$ENV{${v}}") set(ENV{${v}} C) endforeach() |