Fix link order in MSYS2 build
This commit is contained in:
@@ -159,12 +159,16 @@ target_link_libraries(86Box PNG::PNG)
|
|||||||
|
|
||||||
if(VCPKG_TOOLCHAIN)
|
if(VCPKG_TOOLCHAIN)
|
||||||
# vcpkg includes a config file for rtmidi
|
# vcpkg includes a config file for rtmidi
|
||||||
find_package(RtMidi)
|
find_package(RtMidi REQUIRED)
|
||||||
target_link_libraries(86Box RtMidi::rtmidi)
|
target_link_libraries(86Box RtMidi::rtmidi)
|
||||||
else()
|
else()
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
pkg_check_modules(RTMIDI REQUIRED IMPORTED_TARGET rtmidi)
|
pkg_check_modules(RTMIDI REQUIRED IMPORTED_TARGET rtmidi)
|
||||||
target_link_libraries(86Box PkgConfig::RTMIDI)
|
target_link_libraries(86Box PkgConfig::RTMIDI)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
target_link_libraries(PkgConfig::RTMIDI INTERFACE winmm)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(include/86box/version.h.in include/86box/version.h @ONLY)
|
configure_file(include/86box/version.h.in include/86box/version.h @ONLY)
|
||||||
|
Reference in New Issue
Block a user