CMake improvements (#201)

- Update CMake to parity with Box2D. Removed BOX3D_AVX2 due to runtime
dispatch.
- CI fixes for ubuntu
- Doxygen refresh from Box2D
This commit is contained in:
Erin Catto 2026-10-20 15:15:20 -07:00 • committed by GitHub
commit f36d061ba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 724 additions and 251 deletions

View file

@ -6,7 +6,15 @@ set(BOX3D_BENCHMARK_FILES
add_executable(benchmark ${BOX3D_BENCHMARK_FILES})
set_target_properties(benchmark PROPERTIES C_STANDARD 17)
set_target_properties(benchmark PROPERTIES
C_STANDARD 17
C_STANDARD_REQUIRED YES
C_EXTENSIONS NO
)
if (BOX3D_COMPILE_WARNING_AS_ERROR)
set_target_properties(benchmark PROPERTIES COMPILE_WARNING_AS_ERROR ON)
endif()
target_link_libraries(benchmark PRIVATE box3d shared)