From 2fa74069a922ce51ad6d9c6474d5bd572db9b61f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 9 Jul 2022 20:19:16 -0500 Subject: [PATCH] [imgui] Add MSVC check to build script --- deps/imgui/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/imgui/CMakeLists.txt b/deps/imgui/CMakeLists.txt index 91ccac96..c18ca475 100644 --- a/deps/imgui/CMakeLists.txt +++ b/deps/imgui/CMakeLists.txt @@ -1,5 +1,9 @@ -set(CMAKE_CXX_FLAGS "-Wno-everything") +# DrinkingTea: begin +if(NOT MSVC) + set(CMAKE_CXX_FLAGS "-Wno-everything") +endif() +# DrinkingTea: end add_library( imgui OBJECT