Skip to content

Commit 9699bca

Browse files
committed
cmake: Windows builds need to link against winmm.
1 parent 5d10e35 commit 9699bca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ add_library(SDL_native_midi SHARED
2121
)
2222
target_include_directories(SDL_native_midi PRIVATE ${SDL3_INCLUDE_DIRS})
2323
target_link_libraries(SDL_native_midi PRIVATE ${SDL3_LIBRARIES})
24+
if(WINDOWS)
25+
target_link_libraries(SDL_native_midi PRIVATE winmm)
26+
endif()
2427
if(APPLE)
2528
target_link_libraries(SDL_native_midi PRIVATE -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices)
2629
endif()

0 commit comments

Comments
 (0)