fix build

midishare complaining libs not found
This commit is contained in:
derselbst 2018-03-17 16:40:51 +01:00
parent 57c7e3d3a6
commit 94316addcf
2 changed files with 12 additions and 7 deletions

View file

@ -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 )

View file

@ -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 )