From 9e00ac9c9fec1f9b1aed25a67c2861a1be23403c Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 4 Dec 2021 01:24:27 +0100 Subject: [PATCH] Attempted fix for RtMidi. --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7e815c5e9..2583038d5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -164,6 +164,8 @@ if(VCPKG_TOOLCHAIN) else() find_package(PkgConfig REQUIRED) pkg_check_modules(RTMIDI REQUIRED IMPORTED_TARGET rtmidi) + if (NOT RTMIDI_FOUND) + pkg_check_modules(RTMIDI REQUIRED IMPORTED_TARGET librtmidi) target_link_libraries(86Box PkgConfig::RTMIDI) if(WIN32)