From 1ee99104f76ccd831713816eec588eb5d7e93f8b Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 3 Dec 2020 14:33:11 -0500 Subject: CMakeDetermineCompilerId: Filter IAR-AVR format INFO strings earlier Remove the bytes between characters from the entire list at once. --- Modules/CMakeDetermineCompilerId.cmake | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index a982d2c..ca82d8a 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -756,15 +756,16 @@ function(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file) # 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 "\\?