Browse Source

Merge topic 'ti-armcl-unknown-arg-warning'

220f78e253 TI: Recognize invalid compiler option warning during try_compile()

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6705
Brad King 4 years ago
parent
commit
3ac8ea7696
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 ()