From f8eb1dd111a035cf7ef0563dc7af263c0d16f835 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer <~@ds.me> Date: Sat, 8 Jun 2024 17:09:41 +0200 Subject: [PATCH] CMake: Detect unknown pragmas with Clang --- cmake/CompileCheck.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CompileCheck.cmake b/cmake/CompileCheck.cmake index 6df1e207ff..e53da804a2 100644 --- a/cmake/CompileCheck.cmake +++ b/cmake/CompileCheck.cmake @@ -30,6 +30,7 @@ function(check_compile RESULT FILE FLAG TYPE) "unrecognized .*option" # GNU "${escaped_flag}.* not supported" # GNU "unknown .*option" # Clang + "warning:.*unknown pragma" # Clang "ignoring unknown option" # MSVC "warning D9002" # MSVC, any lang "warning #[0-9]*:" # Intel