Skip to content

Commit

Permalink
disable -Wno-stringop-overflow on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Sep 24, 2024
1 parent 5859d0b commit 2bb402d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,16 @@ if(NOT MSVC)
target_compile_options(Bullet3Common PRIVATE -Wno-argument-outside-range)
target_compile_options(BulletCollision PRIVATE -Wno-argument-outside-range)
target_compile_options(LinearMath PRIVATE -Wno-argument-outside-range)

endif()
if(NOT MSVC AND NOT APPLE)
target_compile_options(BulletDynamics PRIVATE -Wno-stringop-overflow)
target_compile_options(BulletInverseDynamics PRIVATE -Wno-stringop-overflow)
target_compile_options(BulletSoftBody PRIVATE -Wno-stringop-overflow)
target_compile_options(Bullet3Common PRIVATE -Wno-stringop-overflow)
target_compile_options(BulletCollision PRIVATE -Wno-stringop-overflow)
target_compile_options(LinearMath PRIVATE -Wno-stringop-overflow)
endif()

include_directories(lib/bullet3/src)
target_link_libraries(${PROJECT_NAME} BulletDynamics BulletCollision LinearMath)

Expand Down

0 comments on commit 2bb402d

Please sign in to comment.