Make sure to enable the RtMidi support on Win32 too

This commit is contained in:
David Hrdlička
2022-03-11 21:06:44 +01:00
parent 7c20d7c5bb
commit ec7c2643e0

View File

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