From bfe5cbd8ada8d99f876514d6acab9c8cd7c5a396 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 3 Oct 2024 14:04:34 +0100 Subject: [PATCH] clang-cl.exe does not support /analyze flag Disable setting the `/analyze` flag on Windows if the compiler ID does not equal MSVC, this fixes builds using the `clang-cl.exe` frontend which does not support this flag. --- cmake/helpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/helpers.cmake b/cmake/helpers.cmake index a09fe283f..6628fcee4 100644 --- a/cmake/helpers.cmake +++ b/cmake/helpers.cmake @@ -258,7 +258,7 @@ function(add_umf_target_compile_options name) ${name} PRIVATE /MD$<$:d> $<$:/sdl> - /analyze + $<$:/analyze> /DYNAMICBASE /W4 /Gy