From f8da9004a0ace40d09ed9d59ac26c143648eebf9 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 17 Jun 2024 10:17:07 +0800 Subject: [PATCH] Fix build on macOS --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git src/CMakeLists.txt src/CMakeLists.txt index 2f4f65c..3e5f591 100644 --- src/CMakeLists.txt +++ 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