Skip to content

CheckCompilerFlag: Fix the regex used to detect invalid options for GCC 10

Luthaf requested to merge Luthaf/cmake:fix-gcc-10-warnings-on-flags into master

The warning emmitted by GCC for invalid options have been updated to read "command-line option XXX is valid ..." instead of "command line option XXX is valid ..."

This commit updates the regex to make it valid with both the old and new warning message

Fixes: #21275 (closed)
Topic-rename: CheckCompilerFlag-gcc-10

Edited by Brad King

Merge request reports

Loading