Respect -DDBUS_BINDING_TOOL provided by cmake user

pull/7/head
Alexander Golubev 11 months ago
parent e542cb2484
commit da111a6195

@ -31,8 +31,6 @@ find_program( DBUS_BINDING_TOOL NAMES dbus-binding-tool )
if( "${DBUS_BINDING_TOOL}" STREQUAL "DBUS_BINDING_TOOL-NOTFOUND" ) if( "${DBUS_BINDING_TOOL}" STREQUAL "DBUS_BINDING_TOOL-NOTFOUND" )
tde_message_fatal( "The dbus-binding-tool executable is required, but was not found on your system" ) tde_message_fatal( "The dbus-binding-tool executable is required, but was not found on your system" )
else()
set( _DBUS_TOOL dbus-binding-tool )
endif( ) endif( )

@ -27,7 +27,7 @@ set( _xml notificationdaemon.xml )
add_custom_command( add_custom_command(
OUTPUT ${_header} OUTPUT ${_header}
COMMAND ${_DBUS_TOOL} COMMAND ${DBUS_BINDING_TOOL}
ARGS --mode=glib-server --prefix=notification_daemon_tde ${CMAKE_CURRENT_SOURCE_DIR}/${_xml} > ${_header} ARGS --mode=glib-server --prefix=notification_daemon_tde ${CMAKE_CURRENT_SOURCE_DIR}/${_xml} > ${_header}
DEPENDS ${_xml} DEPENDS ${_xml}
) )

Loading…
Cancel
Save