diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1f7fe67c0..2bb82ca4e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -159,12 +159,16 @@ target_link_libraries(86Box PNG::PNG) if(VCPKG_TOOLCHAIN) # vcpkg includes a config file for rtmidi - find_package(RtMidi) + find_package(RtMidi REQUIRED) target_link_libraries(86Box RtMidi::rtmidi) else() find_package(PkgConfig REQUIRED) pkg_check_modules(RTMIDI REQUIRED IMPORTED_TARGET rtmidi) target_link_libraries(86Box PkgConfig::RTMIDI) + + if(WIN32) + target_link_libraries(PkgConfig::RTMIDI INTERFACE winmm) + endif() endif() configure_file(include/86box/version.h.in include/86box/version.h @ONLY)