summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2025-02-09 11:33:47 +1000
committermio <stigma@disroot.org>2025-03-04 20:44:00 +1000
commit9742e1366e800988acdc6c973c42f311c8af59ce (patch)
tree97464b5b61638064ed026614878496d0ea71d25f /CMakeLists.txt
parentc5fbd1f8d860194b75536202e9774ea6582ddf39 (diff)
downloadtdelibs-9742e136.tar.gz
tdelibs-9742e136.zip
tdehw: Add libnm dependency
This will ensure that the correct directory is searched by tdehw when looking for VPN service files. Signed-off-by: mio <stigma@disroot.org> (cherry picked from commit 7a30ee518851ecc7d70c4a3c26e54fd12595a911)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1628a580d..e5fde6fe3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1339,6 +1339,20 @@ if( NOT WITH_${DEFAULT_SPELL_CHECKER} )
endif()
+#### Check for libnm ############################
+
+if( WITH_NETWORK_MANAGER_BACKEND )
+ pkg_search_module( LIBNM libnm )
+ if( NOT LIBNM_FOUND )
+ tde_message_fatal( "libnm was requested but it was not found on your system." )
+ endif( NOT LIBNM_FOUND )
+ pkg_get_variable( NM_VPN_SERVICE_DIR libnm vpnservicedir )
+ if( "${NM_VPN_SERVICE_DIR}" STREQUAL "" )
+ set( NM_VPN_SERVICE_DIR "/usr/lib/NetworkManager/VPN" )
+ endif( "${NM_VPN_SERVICE_DIR}" STREQUAL "" )
+endif( WITH_NETWORK_MANAGER_BACKEND )
+
+
##### enable TDEIconLoader debugging ############
if ( WITH_TDEICONLOADER_DEBUG )