From 0753ddc51fe0e42cf5da072bb000a0b7e54d95b5 Mon Sep 17 00:00:00 2001 From: AyiStar <824476660@qq.com> Date: Wed, 18 Oct 2023 15:49:08 +0800 Subject: [PATCH] Update CMakeLists.txt Add /Wv:18 to prevent warnings from newer vc version --- engine/3rdparty/JoltPhysics/Build/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/3rdparty/JoltPhysics/Build/CMakeLists.txt b/engine/3rdparty/JoltPhysics/Build/CMakeLists.txt index 610900507..d5540e8ba 100644 --- a/engine/3rdparty/JoltPhysics/Build/CMakeLists.txt +++ b/engine/3rdparty/JoltPhysics/Build/CMakeLists.txt @@ -42,7 +42,7 @@ if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUAL endif() # Set general compiler flags - set(CMAKE_CXX_FLAGS "/std:c++17 /Zc:__cplusplus /GR- /Gm- /Wall /WX /EHsc /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi /DWIN32 /D_WINDOWS /DUNICODE /D_UNICODE") + set(CMAKE_CXX_FLAGS "/std:c++17 /Zc:__cplusplus /GR- /Gm- /Wall /WX /Wv:18 /EHsc /MP /nologo /diagnostics:classic /FC /fp:except- /Zc:inline /Zi /DWIN32 /D_WINDOWS /DUNICODE /D_UNICODE") # Set compiler flags for various configurations set(CMAKE_CXX_FLAGS_DEBUG "/GS /Od /Ob0 /RTC1") set(CMAKE_CXX_FLAGS_RELEASE "/GS- /GL /Gy /O2 /Oi /Ot")