diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-08-26 18:16:21 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-08-26 18:16:21 +0300 |
commit | 14608c5e86af35df02035c211d8e778ecec63cba (patch) | |
tree | 7113c03ade3ec5cd86f9325df37efca927c2e6ae /extern/bullet2 | |
parent | 2ef5fabec9ac8f03c3da3fb201164a4fa4a9220d (diff) |
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.
Diffstat (limited to 'extern/bullet2')
-rw-r--r-- | extern/bullet2/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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}") |