From 5bae42d012ccebe0031ea3a85416af6c1a9ca737 Mon Sep 17 00:00:00 2001 From: zmt00 Date: Thu, 23 Nov 2023 12:24:21 -0800 Subject: [PATCH] CMakeLists: Fix build with /WX and clang-cl on non-VS generators. (#764) Co-authored-by: zmt00 <25973424+zmt00@users.noreply.github.com> --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8893f3a..9bfc9508 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,7 +80,7 @@ if (MSVC) /WX) endif() - if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+") + if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") list(APPEND DYNARMIC_CXX_FLAGS -Qunused-arguments -Wno-missing-braces)