From 5cb66f17cadebd746d57cb95df67e9b3f327c4a1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Dec 2020 14:36:19 -0500 Subject: CMakeDetermineCompilerId: Add whitespace to clarify logic Also initialize a variable closer to its use. --- Modules/CMakeDetermineCompilerId.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index ca82d8a..d586275 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -752,10 +752,11 @@ function(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file) break() endif() endforeach() - set(COMPILER_ID_TWICE) + # With the IAR Compiler, some strings are found twice, first time as incomplete # list like "?". Remove the incomplete copies. list(FILTER CMAKE_${lang}_COMPILER_ID_STRINGS EXCLUDE REGEX "\\?