Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2020-08-26 18:16:21 +0300
committerRay Molenkamp <github@lazydodo.com>2020-08-26 18:16:21 +0300
commit14608c5e86af35df02035c211d8e778ecec63cba (patch)
tree7113c03ade3ec5cd86f9325df37efca927c2e6ae /extern/bullet2/CMakeLists.txt
parent2ef5fabec9ac8f03c3da3fb201164a4fa4a9220d (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/CMakeLists.txt')
-rw-r--r--extern/bullet2/CMakeLists.txt3
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}")