Skip to content

Commit 515c0ab

Browse files
committed
win32: add windowsapp which seems needed on MSVC
1 parent 969185c commit 515c0ab

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmake/libremidi.winmidi.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ target_include_directories(libremidi SYSTEM ${_public}
6666
target_compile_definitions(libremidi ${_public} LIBREMIDI_WINMIDI)
6767
set(LIBREMIDI_HAS_WINMIDI 1)
6868
target_link_libraries(libremidi INTERFACE RuntimeObject)
69+
if(MSVC)
70+
target_link_libraries(libremidi ${_public} windowsapp)
71+
endif()

cmake/libremidi.winuwp.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if(CPPWINRT_PATH)
2323
# We don't need /ZW option here (support for C++/CX)' as we use C++/WinRT
2424
if(MSVC)
2525
target_compile_options(libremidi ${_public} /EHsc)
26+
target_link_libraries(libremidi ${_public} windowsapp)
2627
endif()
2728
else()
2829
message(STATUS "libremidi: Failed to find Windows SDK, UWP MIDI backend will not be available")

0 commit comments

Comments
 (0)