diff --git a/CMakeLists.txt b/CMakeLists.txt index 951e69f7..e10b0e95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -581,6 +581,10 @@ endif() if (APPLE) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Foundation -framework Cocoa -framework UserNotifications") + set(SRC_FILES ${SRC_FILES} src/notifications/ManagerMac.mm src/notifications/ManagerMac.cpp) + if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0") + set_source_files_properties( src/notifications/ManagerMac.mm PROPERTIES SKIP_PRECOMPILE_HEADERS ON) + endif() elseif (WIN32) file(DOWNLOAD "https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.cpp" diff --git a/src/notifications/ManagerMac.mm b/src/notifications/ManagerMac.mm index 8669432b..02e333d7 100644 --- a/src/notifications/ManagerMac.mm +++ b/src/notifications/ManagerMac.mm @@ -4,7 +4,6 @@ #import #import -#include #include @interface UNNotificationAttachment (UNNotificationAttachmentAdditions)