Skip to content

Commit f505370

Browse files
mingqian.guihyv1001
authored andcommitted
make JointPhysics dont treat warning as error when compile
1 parent 92a171e commit f505370

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

engine/3rdparty/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ if(NOT TARGET Jolt)
7070
MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
7171
endif()
7272

73+
if (MSVC)
74+
target_compile_options(Jolt PRIVATE "/W4")
75+
else()
76+
target_compile_options(Jolt PRIVATE "-Wall")
77+
endif()
7378
endif()
7479

7580
if(NOT TARGET sol2)

0 commit comments

Comments
 (0)