mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
fix build
midishare complaining libs not found
This commit is contained in:
parent
57c7e3d3a6
commit
94316addcf
2 changed files with 12 additions and 7 deletions
|
@ -432,8 +432,13 @@ endif ( enable-oss )
|
|||
|
||||
unset ( MIDISHARE_SUPPORT CACHE )
|
||||
if ( enable-midishare )
|
||||
find_package ( MidiShare )
|
||||
find_package ( MidiShare QUIET )
|
||||
set ( MIDISHARE_SUPPORT ${MidiShare_FOUND} )
|
||||
if ( MidiShare_FOUND )
|
||||
set ( MidiShare_LIBS ${MidiShare_LIBRARIES} )
|
||||
else ( MidiShare_FOUND )
|
||||
unset ( MidiShare_LIBS CACHE )
|
||||
endif ( MidiShare_FOUND )
|
||||
else ( enable-midishare )
|
||||
unset ( MidiShare_LIBS CACHE )
|
||||
endif ( enable-midishare )
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
# Try to find the READLINE library
|
||||
# MidiShare_FOUND - system has MidiShare
|
||||
# MidiShare_INCLUDE_DIR - MidiShare include directory
|
||||
# MidiShare_LIBS - Libraries needed to use MidiShare
|
||||
# MidiShare_LIBRARIES - Libraries needed to use MidiShare
|
||||
|
||||
if ( MidiShare_INCLUDE_DIR AND MidiShare_LIBS )
|
||||
if ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
|
||||
set ( MidiShare_FIND_QUIETLY TRUE )
|
||||
endif ( MidiShare_INCLUDE_DIR AND MidiShare_LIBS )
|
||||
endif ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
|
||||
|
||||
find_path ( MidiShare_INCLUDE_DIR NAMES MidiShare.h )
|
||||
find_library ( MidiShare_LIBS NAMES MidiShare )
|
||||
find_library ( MidiShare_LIBRARIES NAMES MidiShare )
|
||||
|
||||
include ( FindPackageHandleStandardArgs )
|
||||
find_package_handle_standard_args( MidiShare DEFAULT_MSG
|
||||
MidiShare_INCLUDE_DIR
|
||||
MidiShare_LIBS )
|
||||
MidiShare_LIBRARIES )
|
||||
|
||||
mark_as_advanced( MidiShare_INCLUDE_DIR MidiShare_LIBS )
|
||||
mark_as_advanced( MidiShare_INCLUDE_DIR MidiShare_LIBRARIES )
|
||||
|
|
Loading…
Reference in a new issue