From 3d8389457ecb0c1d7809df04c6c49af45031bb1e Mon Sep 17 00:00:00 2001 From: msuih Date: Fri, 28 Jun 2019 07:15:49 +0300 Subject: [PATCH] Disable more 3rdparty warnings --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d62619083a..861d443576 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,9 +64,16 @@ endif() # Warnings are silenced for 3rdparty code set(CMAKE_CXX_FLAGS -w) set(CMAKE_C_FLAGS -w) +set(LLVM_ENABLE_WARNINGS OFF CACHE BOOL "") + +if(MSVC) + add_compile_options(/wd4530) # C++ exception handler used, but unwind semantics are not enabled +endif() + add_subdirectory(Vulkan EXCLUDE_FROM_ALL) add_subdirectory(asmjitsrc EXCLUDE_FROM_ALL) add_subdirectory(3rdparty) + unset(CMAKE_CXX_FLAGS) unset(CMAKE_C_FLAGS)