From 14608c5e86af35df02035c211d8e778ecec63cba Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Wed, 26 Aug 2020 09:16:21 -0600 Subject: [PATCH] Cleanup: Fix MSVC warning regarding flags in bullet For bullet we compile at /W0 for MSVC but we did not remove the standard /W3 flag. Leading to the following warning: Command line warning D9025 : overriding '/W3' with '/W0' This change removes the W3 flag for bullet to get rid of the warning. --- extern/bullet2/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extern/bullet2/CMakeLists.txt b/extern/bullet2/CMakeLists.txt index b386aa4035b..9d0557ded7d 100644 --- a/extern/bullet2/CMakeLists.txt +++ b/extern/bullet2/CMakeLists.txt @@ -419,7 +419,8 @@ if(MSVC) # bullet is responsible for quite a few silly warnings # suppress all of them. Not great, but they really needed # to sort that out themselves. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0") + remove_cc_flag("/W3") + add_c_flag("/W0") endif() blender_add_lib(extern_bullet "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")