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)