CMakeLists: Fix building with MSVC-clang toolset

This commit is contained in:
bookmist 2022-08-04 20:55:54 +03:00 committed by merry
parent 0172df7431
commit 9e6107f565

View File

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