Fix to detect xmms properly

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 64ba1818fe)
r14.0.x
OBATA Akio 5 years ago committed by Slávek Banko
parent b6e5f2a72c
commit a28e7b3c1c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -35,9 +35,10 @@ if( BUILD_KICKER_APPLETS )
check_include_file( "fcntl.h" HAVE_FCNTL_H )
if( WITH_XMMS )
# FIXME: xmms is realy outdated, so check if this is really works
check_library_exists( xmms_remote_is_running xmms HAVE_XMMSLIB )
check_symbol_exist( xmms_remote_is_running "xmms/xmmsctrl.h" HAVE_XMMS )
check_library_exists( xmms xmms_remote_is_running "" HAVE_XMMS_LIB )
tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "xmms" )
check_symbol_exists( xmms_remote_is_running "xmms/xmmsctrl.h" HAVE_XMMS )
tde_restore( CMAKE_REQUIRED_LIBRARIES )
if( HAVE_XMMS_LIB AND HAVE_XMMS )
set( XMMS_LIBRARIES xmms )
else( HAVE_XMMS )

Loading…
Cancel
Save