aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2023-09-06 11:03:46 +0200
committerTill Maas <opensource@till.name>2023-09-06 11:03:46 +0200
commit12dc6d220d2e9974cbeb2f08b0f1b51864f6debb (patch)
tree1a597c38058664086f944155a6fd94804fad2780
parent86f8bb359b91c7c9295c8e6997c93ce92c32428f (diff)
downloadlibayatana-appindicator-12dc6d220d2e9974cbeb2f08b0f1b51864f6debb.tar.gz
libayatana-appindicator-12dc6d220d2e9974cbeb2f08b0f1b51864f6debb.tar.bz2
libayatana-appindicator-12dc6d220d2e9974cbeb2f08b0f1b51864f6debb.zip
cmake: Install library as library
Fedora needs libraries to be executable to extract debug information. Debian does not. The cmake TARGETS installation takes care of this, therefore use it.
-rw-r--r--src/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ddbb45d..2f4f65c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -126,9 +126,7 @@ target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${CMAKE_CURRE
target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries("${ayatana_appindicator_gtkver}" ${PROJECT_DEPS_LIBRARIES})
target_link_options ("${ayatana_appindicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/app-indicator.symbols")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so.1" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so.1.0.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
+install(TARGETS "${ayatana_appindicator_gtkver}" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
# AyatanaAppIndicator{,3}-0.1.gir