diff options
author | Till Maas <opensource@till.name> | 2023-08-24 11:20:59 +0200 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2023-08-24 11:20:59 +0200 |
commit | 610ddb963ca89b3aa0d38058dd46793484c502af (patch) | |
tree | 4ec4604e559cc8b57b46cf0408370ca5ddae3179 | |
parent | b1998c6ab583d5129ef0e10eb9b6c99ff0b89631 (diff) | |
download | ayatana-ido-610ddb963ca89b3aa0d38058dd46793484c502af.tar.gz ayatana-ido-610ddb963ca89b3aa0d38058dd46793484c502af.tar.bz2 ayatana-ido-610ddb963ca89b3aa0d38058dd46793484c502af.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.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 670cc71..5b3638d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -104,9 +104,7 @@ target_include_directories("ayatana-ido3-0.4" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS target_include_directories("ayatana-ido3-0.4" PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_include_directories("ayatana-ido3-0.4" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) target_compile_definitions("ayatana-ido3-0.4" PUBLIC G_LOG_DOMAIN="IDO") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libayatana-ido3-0.4.so.0.0.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") +install(TARGETS "ayatana-ido3-0.4" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}") # AyatanaIdo3-0.4.gir |