Commit: 14608c5e86af35df02035c211d8e778ecec63cba
Author: Ray Molenkamp
Date: Wed Aug 26 09:16:21 2020 -0600
Branches: master
https://developer.blender.org/rB14608c5e86af35df02035c211d8e778ecec63cba
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.
===================================================================
M extern/bullet2/CMakeLists.txt
===================================================================
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}")
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs