diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake index 2ea21bfcec..610f0e6437 100644 --- a/cmake/OpenCVUtils.cmake +++ b/cmake/OpenCVUtils.cmake @@ -402,8 +402,8 @@ endmacro() set(OCV_COMPILER_FAIL_REGEX "argument .* is not valid" # GCC 9+ (including support of unicode quotes) - "command line option .* is valid for .* but not for C\\+\\+" # GNU - "command line option .* is valid for .* but not for C" # GNU + "command[- ]line option .* is valid for .* but not for C\\+\\+" # GNU + "command[- ]line option .* is valid for .* but not for C" # GNU "unrecognized .*option" # GNU "unknown .*option" # Clang "ignoring unknown option" # MSVC