Skip to content

Commit 6881d6d

Browse files
committed
cmake: we were missing linking against combase.dll
1 parent 8720356 commit 6881d6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/libremidi.winmidi.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ target_include_directories(libremidi SYSTEM ${_public}
7373
)
7474
target_compile_definitions(libremidi ${_public} LIBREMIDI_WINMIDI)
7575
set(LIBREMIDI_HAS_WINMIDI 1)
76-
target_link_libraries(libremidi ${_public} RuntimeObject)
76+
target_link_libraries(libremidi ${_public} RuntimeObject Combase)
7777
if(MSVC)
7878
target_link_libraries(libremidi ${_public} windowsapp)
7979
endif()

cmake/libremidi.winuwp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if(CPPWINRT_PATH)
1919

2020
target_include_directories(libremidi SYSTEM ${_public} "${CPPWINRT_PATH}")
2121
target_compile_definitions(libremidi ${_public} LIBREMIDI_WINUWP)
22-
target_link_libraries(libremidi INTERFACE RuntimeObject)
22+
target_link_libraries(libremidi INTERFACE RuntimeObject Combase)
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)

0 commit comments

Comments
 (0)