Please consider removing that hack in pm_win/static.cmake.
Currently the project links to the release runtime for debug builds.
This causes a warning when linking my project in debug mode.
If you want to use the static lib, this is the way to do it with modern CMake:
set_target_properties(portmidi PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
Please consider removing that hack in pm_win/static.cmake. Currently the project links to the release runtime for debug builds. This causes a warning when linking my project in debug mode.
If you want to use the static lib, this is the way to do it with modern CMake:
set_target_properties(portmidi PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
See https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html