From cddc2212c8b50c77a7f84fd1fd8560c1b55edf01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Sat, 7 Nov 2020 11:13:02 -0500 Subject: [PATCH] Use built-in RtMidi on Linux too --- app/gui/qt/external/sp_midi/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/gui/qt/external/sp_midi/CMakeLists.txt b/app/gui/qt/external/sp_midi/CMakeLists.txt index 1b1bf6d4fd..1e4235f638 100644 --- a/app/gui/qt/external/sp_midi/CMakeLists.txt +++ b/app/gui/qt/external/sp_midi/CMakeLists.txt @@ -46,6 +46,11 @@ if(APPLE) add_definitions(-D__MACOSX_CORE__) endif(APPLE) +if(UNIX) + list(APPEND sp_midi_sources ${PROJECT_SOURCE_DIR}/external_libs/rtmidi/RtMidi.cpp) + add_definitions(-D__LINUX_ALSA__) +endif(UNIX) + if(APPLE) set(juce_sources JuceLibraryCode/include_juce_core.mm @@ -87,6 +92,6 @@ elseif(APPLE) target_link_libraries(libsp_midi "-framework CoreMIDI -framework CoreAudio -framework CoreFoundation -framework Accelerate -framework QuartzCore -framework AudioToolbox -framework IOKit -framework DiscRecording -framework Cocoa") elseif(UNIX) add_definitions(-DLINUX=1 -DNDEBUG=1 -DJUCER_LINUX_MAKE_6D53C8B4=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000) - target_link_libraries(libsp_midi pthread ${ALSA_LIBRARY} dl rtmidi) + target_link_libraries(libsp_midi pthread ${ALSA_LIBRARY} dl) endif(MSVC)