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))