Respect -DDBUS_BINDING_TOOL provided by cmake user

(cherry picked from commit da111a6195)
r14.1.x
Alexander Golubev 11 months ago committed by Michele Calgaro
parent a971c7f641
commit 93591f24f6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -31,8 +31,6 @@ find_program( DBUS_BINDING_TOOL NAMES dbus-binding-tool )
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" )
else()
set( _DBUS_TOOL dbus-binding-tool )
endif( )

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

Loading…
Cancel
Save