From ec7c2643e093afdde2db2a89b5ffb8e39cbe033e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Fri, 11 Mar 2022 21:06:44 +0100 Subject: [PATCH] Make sure to enable the RtMidi support on Win32 too --- src/win/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win/CMakeLists.txt b/src/win/CMakeLists.txt index 89631d209..fc2e3314b 100644 --- a/src/win/CMakeLists.txt +++ b/src/win/CMakeLists.txt @@ -27,6 +27,10 @@ if(NOT CPPTHREADS) target_sources(plat PRIVATE win_thread.c) endif() +if(RTMIDI) + target_compile_definitions(ui PRIVATE USE_RTMIDI) +endif() + # CMake 3.22 messed this up for clang/clang++ # See https://gitlab.kitware.com/cmake/cmake/-/issues/23066 if(MSVC OR (NOT MINGW AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22))