Skip to content

Commit

Permalink
make JointPhysics dont treat warning as error when compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mingqian.gui authored and hyv1001 committed Sep 30, 2024
1 parent 92a171e commit f505370
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine/3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ if(NOT TARGET Jolt)
MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
endif()

if (MSVC)
target_compile_options(Jolt PRIVATE "/W4")
else()
target_compile_options(Jolt PRIVATE "-Wall")
endif()
endif()

if(NOT TARGET sol2)
Expand Down

0 comments on commit f505370

Please sign in to comment.