Changeset View
Changeset View
Standalone View
Standalone View
head/devel/kf5-kcoreaddons/files/patch-CMakeLists.txt
| --- CMakeLists.txt.orig 2016-05-09 16:05:04 UTC | --- CMakeLists.txt.orig 2016-05-09 16:05:04 UTC | ||||
| +++ CMakeLists.txt | +++ CMakeLists.txt | ||||
| @@ -35,9 +35,14 @@ set(HAVE_FAM ${FAM_FOUND}) | @@ -35,9 +35,14 @@ set(HAVE_FAM ${FAM_FOUND}) | ||||
| option(ENABLE_INOTIFY "Try to use inotify for directory monitoring" ON) | option(ENABLE_INOTIFY "Try to use inotify for directory monitoring" ON) | ||||
| if(ENABLE_INOTIFY) | if(ENABLE_INOTIFY) | ||||
| - include(CheckIncludeFiles) | - include(CheckIncludeFiles) | ||||
| - check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND) | - check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND) | ||||
| - set(HAVE_SYS_INOTIFY_H ${SYS_INOTIFY_H_FOUND}) | - set(HAVE_SYS_INOTIFY_H ${SYS_INOTIFY_H_FOUND}) | ||||
| +# Find libinotify | +# Find libinotify | ||||
| +find_package(Libinotify) | +find_package(Inotify) | ||||
| +set_package_properties(Libinotify PROPERTIES | +set_package_properties(Inotify PROPERTIES | ||||
| + PURPOSE "Filesystem alteration notifications using inotify") | + PURPOSE "Filesystem alteration notifications using inotify") | ||||
| + | + | ||||
| +set(HAVE_SYS_INOTIFY_H ${LIBINOTIFY_FOUND}) | +set(HAVE_SYS_INOTIFY_H ${Inotify_FOUND}) | ||||
| +else() | +else() | ||||
| +set(HAVE_SYS_INOTIFY_H FALSE) | +set(HAVE_SYS_INOTIFY_H FALSE) | ||||
| endif() | endif() | ||||
| # Generate io/config-kdirwatch.h | # Generate io/config-kdirwatch.h | ||||