vcpkg/ports/joltphysics/disable-warningC5266.patch
Lily Wang 0a8ac2f124
[joltphysics] Disable treats all compiler warnings as errors (#29271)
* [joltphysics] Disable warning C5266

* update version

* apply suggestion

* update version
2023-01-31 11:26:52 -08:00

14 lines
704 B
Diff

diff --git a/Build/CMakeLists.txt b/Build/CMakeLists.txt
index 27c4c64..78f3947 100644
--- a/Build/CMakeLists.txt
+++ b/Build/CMakeLists.txt
@@ -53,7 +53,7 @@ if (("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUA
endif()
# Set general compiler flags
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /Zc:__cplusplus /Gm- /Wall /WX /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /Zc:__cplusplus /Gm- /Wall /WX- /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi")
# Remove any existing compiler flag that enables RTTI
string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})