Skip to content

Commit f704a68

Browse files
committed
cmake: attempt to fix Windows builds.
Fixes #6.
1 parent bd85029 commit f704a68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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+
set_property(TARGET SDL_native_midi PROPERTY DEFINE_SYMBOL "DLL_EXPORT")
2425
if(WIN32)
2526
target_link_libraries(SDL_native_midi PRIVATE winmm)
2627
endif()

0 commit comments

Comments
 (0)