aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Fedorov <barracuda@macos-powerpc.org>2024-06-17 09:49:30 +0800
committerSergey Fedorov <barracuda@macos-powerpc.org>2024-06-17 09:49:30 +0800
commit8b4fc71da62cc9b719537c682c44fb4c719507db (patch)
treea75b60bf95923effdd7142523df3671f36d36666 /src
parentfded0d3a1106dd3aa9a76d0cf4a0fb5bda732ac5 (diff)
downloadlibayatana-indicator-8b4fc71da62cc9b719537c682c44fb4c719507db.tar.gz
libayatana-indicator-8b4fc71da62cc9b719537c682c44fb4c719507db.tar.bz2
libayatana-indicator-8b4fc71da62cc9b719537c682c44fb4c719507db.zip
Fix build on macOS
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index aa6b9a2..400f91a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -139,7 +139,9 @@ target_compile_definitions("${ayatana_indicator_gtkver}" PUBLIC DG_LOG_DOMAIN="l
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
-target_link_options("${ayatana_indicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/indicator.symbols")
+if(NOT APPLE)
+ target_link_options("${ayatana_indicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/indicator.symbols")
+endif()
target_link_libraries("${ayatana_indicator_gtkver}" ${PROJECT_DEPS_LIBRARIES} ${EXTRA_LIBS})
add_dependencies("${ayatana_indicator_gtkver}" "src-generated")
install(TARGETS "${ayatana_indicator_gtkver}" LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")