From bbf280e12e8a7a76fe8477f074633aa92c3d3179 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Mon, 13 Nov 2023 11:35:49 +0800 Subject: [PATCH] Do not try to link UserNotifications framework when building below 10.14 Signed-off-by: Claudio Cambra --- src/gui/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index dee29ef6af..162da6e203 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -715,8 +715,10 @@ if (APPLE) if (BUILD_FILE_PROVIDER_MODULE) target_link_libraries(nextcloudCore PUBLIC Qt5::MacExtras "-framework UserNotifications -framework FileProvider") - else() + elseif(NOT DEFINED CMAKE_OSX_DEPLOYMENT_TARGET OR CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 10.14) target_link_libraries(nextcloudCore PUBLIC Qt5::MacExtras "-framework UserNotifications") + else() + target_link_libraries(nextcloudCore PUBLIC Qt5::MacExtras) endif() endif()