From e03028a0d2d8a2d7b8c73e7280780c9e43e9c4b9 Mon Sep 17 00:00:00 2001 From: glx22 Date: Thu, 7 Nov 2024 21:54:59 +0100 Subject: [PATCH] Codefix: use -Wno-multichar with clang-cl --- cmake/CompileFlags.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 92e7be2cf4..2f62a7b8b5 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -56,6 +56,11 @@ macro(compile_flags) # This flag disables the broken optimisation to work around the bug add_compile_options(/d2ssa-rse-) endif() + if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + add_compile_options( + -Wno-multichar + ) + endif() elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") add_compile_options( -W