aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 400f91a..b638165 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -142,6 +142,6 @@ target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_
if(NOT APPLE)
target_link_options("${ayatana_indicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/indicator.symbols")
endif()
-target_link_libraries("${ayatana_indicator_gtkver}" ${PROJECT_DEPS_LIBRARIES} ${EXTRA_LIBS})
+target_link_libraries("${ayatana_indicator_gtkver}" ${PROJECT_DEPS_LINK_LIBRARIES} ${EXTRA_LIBS})
add_dependencies("${ayatana_indicator_gtkver}" "src-generated")
install(TARGETS "${ayatana_indicator_gtkver}" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")