aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSergey Fedorov <barracuda@macos-powerpc.org>2024-06-17 10:17:07 +0800
committerSergey Fedorov <barracuda@macos-powerpc.org>2024-06-17 10:17:07 +0800
commitf8da9004a0ace40d09ed9d59ac26c143648eebf9 (patch)
tree349cc362c298f96581febaf1dd93dc74d31d1d9b /src/CMakeLists.txt
parent238c8b02718fa5b4af95ede72beeed762094f4cc (diff)
downloadlibayatana-appindicator-f8da9004a0ace40d09ed9d59ac26c143648eebf9.tar.gz
libayatana-appindicator-f8da9004a0ace40d09ed9d59ac26c143648eebf9.tar.bz2
libayatana-appindicator-f8da9004a0ace40d09ed9d59ac26c143648eebf9.zip
Fix build on macOS
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2f4f65c..3e5f591 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -125,7 +125,9 @@ target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${PROJECT_DEP
target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
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")
+if(NOT APPLE)
+ target_link_options ("${ayatana_appindicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/app-indicator.symbols")
+endif()
install(TARGETS "${ayatana_appindicator_gtkver}" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
# AyatanaAppIndicator{,3}-0.1.gir