diff options
| author | Robert Tari <robert@tari.in> | 2025-03-10 18:14:47 +0100 |
|---|---|---|
| committer | Robert Tari <robert@tari.in> | 2025-03-10 19:06:22 +0100 |
| commit | 3bd6b2f43bc793e95317f03b2e1622a2a7c1afcc (patch) | |
| tree | 37b7d5c05aff166ee8f3ec4620ddd394ffbd2522 /src/CMakeLists.txt | |
| parent | d3dc11e491e3b09847d51cd840435435284d92a7 (diff) | |
| download | ayatana-indicator-datetime-3bd6b2f43bc793e95317f03b2e1622a2a7c1afcc.tar.gz ayatana-indicator-datetime-3bd6b2f43bc793e95317f03b2e1622a2a7c1afcc.tar.bz2 ayatana-indicator-datetime-3bd6b2f43bc793e95317f03b2e1622a2a7c1afcc.zip | |
Fix missing notification icon with libnotify 0.8.4
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 69a2dfc..2305fdf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -59,6 +59,13 @@ include_directories (${CMAKE_CURRENT_BINARY_DIR}) set_source_files_properties (engine-eds.cpp PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-enum-constexpr-conversion") add_library (${SERVICE_LIB} STATIC ${SERVICE_C_SOURCES} ${SERVICE_CXX_SOURCES} ${SERVICE_GENERATED_SOURCES}) + +pkg_check_modules (LIBNOTIFY libnotify REQUIRED) + +if (LIBNOTIFY_VERSION VERSION_GREATER_EQUAL "0.8.4") + target_compile_definitions (${SERVICE_LIB} PUBLIC LIBNOTIFY_HAS_SET_APP_ICON) +endif() + include_directories (${CMAKE_SOURCE_DIR}) link_directories (${SERVICE_DEPS_LIBRARY_DIRS}) |
