summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerABI.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-31 13:24:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-31 13:25:08 (GMT)
commit888c235ecaa5e82fbd6ffb0a312bd74bbc5bb0ed (patch)
treedd7e774d596f6fda7b5541c6d930171994948109 /Modules/CMakeDetermineCompilerABI.cmake
parent062e5471168f6aee123359a111429a7ec75d6291 (diff)
parentcec6f980181d9ca88ff53f0b1626713ed98a3369 (diff)
downloadCMake-888c235ecaa5e82fbd6ffb0a312bd74bbc5bb0ed.zip
CMake-888c235ecaa5e82fbd6ffb0a312bd74bbc5bb0ed.tar.gz
CMake-888c235ecaa5e82fbd6ffb0a312bd74bbc5bb0ed.tar.bz2
Merge topic 'werror_space_fix'
cec6f98018 CMakeDetermineCompilerABI: Avoid removing the flag after -Werror Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !8518
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerABI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
index d665cd1..13bfeec 100644
--- a/Modules/CMakeDetermineCompilerABI.cmake
+++ b/Modules/CMakeDetermineCompilerABI.cmake
@@ -42,7 +42,7 @@ function(CMAKE_DETERMINE_COMPILER_ABI lang src)
__TestCompiler_setTryCompileTargetType()
# Avoid failing ABI detection on warnings.
- string(REGEX REPLACE "(^| )-Werror([= ][^ ]*)?( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}")
+ string(REGEX REPLACE "(^| )-Werror([= ][^-][^ ]*)?( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}")
# Save the current LC_ALL, LC_MESSAGES, and LANG environment variables
# and set them to "C" that way GCC's "search starts here" text is in