e78acce652
Some (all?) versions of cmake seem to get a bit confused when an old-style FIND_PACKAGE_HANDLE_STANDARD_ARGS call fails, and the scripts attempt a new- style call later on. It continues to think it's using old-style, acting as if REQUIRED_VARS is the message and looks for a VERSION_VAR variable.
20 lines
709 B
CMake
20 lines
709 B
CMake
# - Find fluidsynth
|
|
# Find the native fluidsynth includes and library
|
|
#
|
|
# FLUIDSYNTH_INCLUDE_DIR - where to find fluidsynth.h
|
|
# FLUIDSYNTH_LIBRARIES - List of libraries when using fluidsynth.
|
|
# FLUIDSYNTH_FOUND - True if fluidsynth found.
|
|
|
|
|
|
FIND_PATH(FLUIDSYNTH_INCLUDE_DIR fluidsynth.h)
|
|
|
|
FIND_LIBRARY(FLUIDSYNTH_LIBRARIES NAMES fluidsynth )
|
|
MARK_AS_ADVANCED( FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR )
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set FLUIDSYNTH_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FluidSynth
|
|
REQUIRED_VARS FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR)
|
|
|