aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2023-09-05 19:17:19 +0200
committerTill Maas <opensource@till.name>2023-09-05 19:17:19 +0200
commit05e43688092836e81fdb524963d79260cfa0a7c8 (patch)
tree0432da9e532735de0f61bb981fbe0574955438fa
parentbae7a9c9353c8cc71dc4c304a8220432c9e2e43a (diff)
downloadlibayatana-indicator-05e43688092836e81fdb524963d79260cfa0a7c8.tar.gz
libayatana-indicator-05e43688092836e81fdb524963d79260cfa0a7c8.tar.bz2
libayatana-indicator-05e43688092836e81fdb524963d79260cfa0a7c8.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 ddb2fec..aa6b9a2 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -142,6 +142,4 @@ target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_
target_link_options("${ayatana_indicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/indicator.symbols")
target_link_libraries("${ayatana_indicator_gtkver}" ${PROJECT_DEPS_LIBRARIES} ${EXTRA_LIBS})
add_dependencies("${ayatana_indicator_gtkver}" "src-generated")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_indicator_gtkver}.so" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_indicator_gtkver}.so.${ABI_VERSION}" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_indicator_gtkver}.so.${ABI_VERSION}.0.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
+install(TARGETS "${ayatana_indicator_gtkver}" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")