ref: 2053768a9251cbd4c731681a3e1e04c800ad21f4
parent: 825f59bb89733078b572cd8557ab7e4001f2e9f6
author: Roman Fomin <rfomin@gmail.com>
date: Fri Jan 27 22:51:47 EST 2023
cmake: Fix MinGW build (#1574)
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -242,9 +242,9 @@
add_executable(midiread midifile.c z_native.c i_system.c m_argv.c m_misc.c d_iwad.c deh_str.c m_config.c)
target_compile_definitions(midiread PRIVATE "-DTEST")
target_include_directories(midiread PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
-target_link_libraries(midiread SDL2::SDL2main SDL2::SDL2)
+target_link_libraries(midiread SDL2::SDL2)
add_executable(mus2mid mus2mid.c memio.c z_native.c i_system.c m_argv.c m_misc.c d_iwad.c deh_str.c m_config.c)
target_compile_definitions(mus2mid PRIVATE "-DSTANDALONE")
target_include_directories(mus2mid PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
-target_link_libraries(mus2mid SDL2::SDL2main SDL2::SDL2)
+target_link_libraries(mus2mid SDL2::SDL2)