Commit 78ba1209 authored by Christophe Giboudeaux's avatar Christophe Giboudeaux

Fix Build when fluidsynth isn't found.

Also try harder to find the library for Windows users.
parent b49f3bd0
......@@ -62,8 +62,9 @@ endif()
find_package(PkgConfig QUIET)
pkg_check_modules(PC_FluidSynth QUIET fluidsynth>=${FluidSynth_FIND_VERSION})
# The Windows library may be called fluidsynth_debug
find_library(FluidSynth_LIBRARIES
NAMES fluidsynth
NAMES fluidsynth fluidsynth_debug
HINTS ${PC_FluidSynth_LIBDIR}
)
......
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android" AND FluidSynth_FOUND)
add_subdirectory(fluidsynthsoundcontroller)
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Android")
if(FluidSynth_FOUND)
add_subdirectory(fluidsynthsoundcontroller)
endif()
else()
add_subdirectory(csoundsoundcontroller)
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment