Changeset View
Changeset View
Standalone View
Standalone View
sysutils/kf5-baloo/files/patch-CMakeLists.txt
--- CMakeLists.txt.orig 2016-04-03 20:42:08 UTC | --- CMakeLists.txt.orig 2016-04-03 20:42:08 UTC | ||||
+++ CMakeLists.txt | +++ CMakeLists.txt | ||||
@@ -59,10 +59,12 @@ set_package_properties(LMDB | @@ -59,10 +59,12 @@ set_package_properties(LMDB | ||||
add_definitions(-DQT_NO_KEYWORDS) | add_definitions(-DQT_NO_KEYWORDS) | ||||
remove_definitions(-DQT_NO_CAST_FROM_ASCII) | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||||
-set(BUILD_KINOTIFY False) | -set(BUILD_KINOTIFY False) | ||||
-if(CMAKE_SYSTEM_NAME MATCHES "Linux") | -if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||||
- set(BUILD_KINOTIFY True) | - set(BUILD_KINOTIFY True) | ||||
-endif() | -endif() | ||||
+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" | ||||
+ TYPE REQUIRED | + TYPE REQUIRED | ||||
+) | +) | ||||
+set(BUILD_KINOTIFY ${LIBINOTIFY_FOUND}) | +set(BUILD_KINOTIFY ${Inotify_FOUND}) | ||||
include_directories( | include_directories( | ||||
${CMAKE_BINARY_DIR} | ${CMAKE_BINARY_DIR} | ||||
@@ -80,6 +82,7 @@ include_directories( | @@ -80,6 +82,7 @@ include_directories( | ||||
${CMAKE_SOURCE_DIR}/src/file | ${CMAKE_SOURCE_DIR}/src/file | ||||
${CMAKE_BINARY_DIR}/src/dbus | ${CMAKE_BINARY_DIR}/src/dbus | ||||
${CMAKE_SOURCE_DIR}/src/dbus | ${CMAKE_SOURCE_DIR}/src/dbus | ||||
+ ${LIBINOTIFY_INCLUDE_DIRS} | + ${Inotify_INCLUDE_DIRS} | ||||
) | ) | ||||
# targets | # targets |