Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/CMakeLists.txt
Show All 15 Lines | |||||
16 | else() | 16 | else() | ||
17 | set(LEGACY_MANGLE_FROM_TO_HEADERS false) | 17 | set(LEGACY_MANGLE_FROM_TO_HEADERS false) | ||
18 | set(LEGACY_BODY_INVITES false) | 18 | set(LEGACY_BODY_INVITES false) | ||
19 | set(EXCHANGE_COMPATIBLE_INVITATIONS false) | 19 | set(EXCHANGE_COMPATIBLE_INVITATIONS false) | ||
20 | endif() | 20 | endif() | ||
21 | 21 | | |||
22 | configure_file(settings/messageviewer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messageviewer.kcfg) | 22 | configure_file(settings/messageviewer.kcfg.cmake ${CMAKE_CURRENT_BINARY_DIR}/messageviewer.kcfg) | ||
23 | include(CheckIncludeFiles) | 23 | include(CheckIncludeFiles) | ||
24 | check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND) | 24 | find_package(Inotify) | ||
25 | macro_bool_to_01(SYS_INOTIFY_H_FOUND HAVE_SYS_INOTIFY_H) | 25 | set_package_properties(Inotify PROPERTIES | ||
26 | PURPOSE "Filesystem alteration notifications using inotify") | ||||
27 | macro_bool_to_01(Inotify_FOUND HAVE_SYS_INOTIFY_H) | ||||
dvratil: Just use `${Inotify_FOUND}` here directly instead of `SYS_INOTIFY_H_FOUND` and you can remove… | |||||
I think this is wrong. The macro_bool_to_01 evaluates the first argument and then sets the remaining arguments to 0 or 1 based on it, so it should be: macro_bool_to_01(Inotify_FOUND HAVE_SYS_INOTIFY_H) dvratil: I think this is wrong. The `macro_bool_to_01` evaluates the first argument and then sets the… | |||||
26 | configure_file(config-messageviewer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-messageviewer.h) | 28 | configure_file(config-messageviewer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-messageviewer.h) | ||
27 | 29 | | |||
28 | # target_include_directories does not handle empty include paths | 30 | # target_include_directories does not handle empty include paths | ||
29 | include_directories(${GPGME_INCLUDES}) | 31 | include_directories(${GPGME_INCLUDES}) | ||
30 | 32 | | |||
31 | if(BUILD_TESTING) | 33 | if(BUILD_TESTING) | ||
32 | add_subdirectory(scamdetection/autotests) | 34 | add_subdirectory(scamdetection/autotests) | ||
33 | add_subdirectory(scamdetection/tests) | 35 | add_subdirectory(scamdetection/tests) | ||
▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines |
Just use ${Inotify_FOUND} here directly instead of SYS_INOTIFY_H_FOUND and you can remove the line above.