diff --git a/messageviewer/src/CMakeLists.txt b/messageviewer/src/CMakeLists.txt --- a/messageviewer/src/CMakeLists.txt +++ b/messageviewer/src/CMakeLists.txt @@ -21,8 +21,10 @@ configure_file(settings/messageviewer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messageviewer.kcfg) include(CheckIncludeFiles) -check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND) -macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H) +find_package(Inotify) +set_package_properties(Inotify PROPERTIES + PURPOSE "Filesystem alteration notifications using inotify") +macro_bool_to_01(Inotify_FOUND HAVE_SYS_INOTIFY_H) configure_file(config-messageviewer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-messageviewer.h) # target_include_directories does not handle empty include paths