From dcc1ddf6f97b4c005095d4016039d5c4d8d71c78 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sat, 2 Mar 2013 17:29:27 -0600 Subject: Fix FTBFS when -DWITH_NETWORK_MANAGER_BACKEND=OFF. --- CMakeLists.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ac1ecf1a2..fd195cf60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -783,23 +783,23 @@ if( NOT DEFINED DBUS_SERVICE_DIRECTORY ) endif( NOT DEFINED DBUS_SERVICE_DIRECTORY ) -if( WITH_NETWORK_MANAGER_BACKEND ) - ##### check for dbus-1 ########################### - pkg_search_module( DBUS dbus-1 ) - if( NOT DBUS_FOUND ) - tde_message_fatal( "dbus-1 are required, but not found on your system" ) - endif( ) +##### check for dbus-1 ########################### +pkg_search_module( DBUS dbus-1 ) +if( NOT DBUS_FOUND ) + tde_message_fatal( "dbus-1 are required, but not found on your system" ) +endif( ) - ##### check for dbus-1-tqt ########################### - pkg_search_module( DBUS_TQT dbus-1-tqt ) - if( DBUS_TQT_FOUND ) - find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 ) - else() - tde_message_fatal( "dbus-1-tqt are required, but not found on your system" ) - endif( ) +##### check for dbus-1-tqt ########################### +pkg_search_module( DBUS_TQT dbus-1-tqt ) +if( DBUS_TQT_FOUND ) + find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 ) +else() + tde_message_fatal( "dbus-1-tqt are required, but not found on your system" ) +endif( ) +if( WITH_NETWORK_MANAGER_BACKEND ) ##### check for libnm-util ########################### pkg_search_module( NM_UTIL libnm-util ) if( NOT NM_UTIL_FOUND ) -- cgit v1.2.3