mkxp-z/subprojects/packagefiles/fluidsynth-executable.patch

51 lines
1.1 KiB
Diff

# Disables building the FluidSynth executable because it causes problems on some platforms.
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -368,31 +368,31 @@ target_link_libraries ( libfluidsynth
# ************ CLI program ************
-set ( fluidsynth_SOURCES fluidsynth.c )
-add_executable ( fluidsynth
- ${fluidsynth_SOURCES}
-)
-if ( FLUID_CPPFLAGS )
- set_target_properties ( fluidsynth
- PROPERTIES COMPILE_FLAGS ${FLUID_CPPFLAGS} )
-endif ( FLUID_CPPFLAGS )
-target_link_libraries ( fluidsynth
- libfluidsynth
- ${SYSTEMD_LIBRARIES}
- ${FLUID_LIBS}
-)
+
+
+
+
+
+
+
+
+
+
+
+
+
if ( MACOSX_FRAMEWORK )
- install ( TARGETS fluidsynth libfluidsynth
+ install ( TARGETS libfluidsynth
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}
ARCHIVE DESTINATION ${FRAMEWORK_INSTALL_DIR}
)
else ( MACOSX_FRAMEWORK )
- install ( TARGETS fluidsynth libfluidsynth
+ install ( TARGETS libfluidsynth
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}