aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFlorian Märkl <info@florianmaerkl.de>2025-05-09 18:24:14 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2026-06-09 15:40:23 +0200
commit80c8c7c5d9872727dbaa4c987f520240555eb4ba (patch)
tree02884795544f11ff121bdd9c1b48ccedd4c6e30d /tools
parent6be6bfff40db6450d11a151812c8b27a65cbe1ed (diff)
downloadlibayatana-indicator-80c8c7c5d9872727dbaa4c987f520240555eb4ba.tar.gz
libayatana-indicator-80c8c7c5d9872727dbaa4c987f520240555eb4ba.tar.bz2
libayatana-indicator-80c8c7c5d9872727dbaa4c987f520240555eb4ba.zip
Fix linking against libs in non-standard paths
pkg_check_modules does not include absolute paths to the libraries in <prefix>_LIBRARIES, causing linker errors if they are not located in a standard path. <prefix>_LINK_LIBRARIES is the equivalent that does contain absolute paths.
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 14ce777..18bf429 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -4,7 +4,7 @@ if (FLAVOUR_GTK3 AND ENABLE_IDO)
add_executable("ayatana-indicator-loader3" indicator-loader.c)
target_include_directories("ayatana-indicator-loader3" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
target_include_directories("ayatana-indicator-loader3" PUBLIC "${CMAKE_SOURCE_DIR}/src")
- target_link_libraries("ayatana-indicator-loader3" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-indicator3)
+ target_link_libraries("ayatana-indicator-loader3" ${PROJECT_DEPS_LINK_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-indicator3)
add_dependencies("ayatana-indicator-loader3" "ayatana-indicator3")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-loader3" DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${PROJECT_NAME}")