Fixes 02 (#31)

Fixes for #29 and #30
This commit is contained in:
Erin Catto 2026-07-02 00:34:04 -07:00 • committed by GitHub
commit 29bf523ce7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 113 additions and 91 deletions

View file

@ -194,6 +194,12 @@ target_include_directories(samples PRIVATE
# benchmark/determinism helpers the samples lean on.
target_link_libraries(samples PRIVATE gfx shared imgui implot sokol nfd)
# MSVC auto-links winmm via a #pragma comment in main.cpp. MinGW ignores that
# pragma, so link the timeBeginPeriod/timeEndPeriod library explicitly.
if (MINGW)
target_link_libraries(samples PRIVATE winmm)
endif()
set_target_properties(samples PROPERTIES
CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON