CMakeLists: Fix build with /WX and clang-cl on non-VS generators. (#764)

Co-authored-by: zmt00 <25973424+zmt00@users.noreply.github.com>
This commit is contained in:
zmt00 2023-11-23 12:24:21 -08:00 committed by GitHub
parent 9d1bc6ecc2
commit 5bae42d012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ if (MSVC)
/WX) /WX)
endif() endif()
if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+") if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
list(APPEND DYNARMIC_CXX_FLAGS list(APPEND DYNARMIC_CXX_FLAGS
-Qunused-arguments -Qunused-arguments
-Wno-missing-braces) -Wno-missing-braces)