Browse Source

TI: Recognize invalid compiler option warning during try_compile()

Fixes: #22866
Craig Scott 4 years ago
parent
commit
220f78e253
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/CMakeCheckCompilerFlagCommonPatterns.cmake

+ 1 - 0
Modules/CMakeCheckCompilerFlagCommonPatterns.cmake

@@ -32,5 +32,6 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
     FAIL_REGEX "Warning: illegal option"                   # SunStudio 12
     FAIL_REGEX "[Ww]arning: Invalid suboption"             # Fujitsu
     FAIL_REGEX "An invalid option .* appears on the command line" # Cray
+    FAIL_REGEX "WARNING: invalid compiler option"          # TI armcl
   )
 endmacro ()