From 89acf6a1fd5124e58cc87fb0b26ef8954e257667 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Tue, 3 May 2022 12:30:32 +0000 Subject: [PATCH] Add POLKIT_GOBJECT_LIBRARY_DIRS to the link_directories Add the library paths for the glib/gobject libraries to the list of link_directories in the CMakeLists.txt files for core, gui, and agent subdirectories to cater for glib not being in /usr. Signed-off-by: aneejit1 --- agent/CMakeLists.txt | 1 + core/CMakeLists.txt | 1 + gui/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt index e559805b8..7022b23c8 100644 --- a/agent/CMakeLists.txt +++ b/agent/CMakeLists.txt @@ -21,6 +21,7 @@ include_directories( link_directories( ${TQT_LIBRARY_DIRS} + ${POLKIT_GOBJECT_LIBRARY_DIRS} ) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 7063673c5..7e1e8c6ce 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -19,6 +19,7 @@ include_directories( link_directories( ${TQT_LIBRARY_DIRS} + ${POLKIT_GOBJECT_LIBRARY_DIRS} ) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 4cfd453ae..fd3c6a1f5 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -20,6 +20,7 @@ include_directories( link_directories( ${TQT_LIBRARY_DIRS} + ${POLKIT_GOBJECT_LIBRARY_DIRS} )