|
46 | 46 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
47 | 47 | #=============================================================================
|
48 | 48 |
|
49 |
| -find_path(Inotify_INCLUDE_DIRS sys/inotify.h) |
50 |
| -if(Inotify_INCLUDE_DIRS) |
51 |
| -# On Linux there is no library to link against, on the BSDs there is. |
52 |
| -# On the BSD's, inotify is implemented through a library, libinotify. |
53 |
| - if( CMAKE_SYSTEM_NAME MATCHES "Linux") |
| 49 | +set(Inotify_FOUND FALSE) |
| 50 | + |
| 51 | +find_path (Inotify_INCLUDE_DIRS sys/inotify.h) |
| 52 | +if (Inotify_INCLUDE_DIRS) |
| 53 | + if (CMAKE_SYSTEM_NAME MATCHES "Linux") |
| 54 | + # On Linux there is no library to link against, on the BSDs there is. |
54 | 55 | set(Inotify_FOUND TRUE)
|
55 | 56 |
|
56 | 57 | set(Inotify_INCLUDE_DIRS "")
|
57 |
| - else() |
58 |
| - find_library(Inotify_LIBRARIES NAMES inotify) |
59 |
| - include(FindPackageHandleStandardArgs) |
60 |
| - find_package_handle_standard_args(Inotify |
61 |
| - FOUND_VAR |
62 |
| - Inotify_FOUND |
63 |
| - REQUIRED_VARS |
64 |
| - Inotify_LIBRARIES |
65 |
| - Inotify_INCLUDE_DIRS |
66 |
| - ) |
67 |
| - mark_as_advanced(Inotify_LIBRARIES Inotify_INCLUDE_DIRS) |
68 |
| - include(FeatureSummary) |
69 |
| - set_package_properties(Inotify PROPERTIES |
70 |
| - URL "https://github.com/libinotify-kqueue/" |
71 |
| - DESCRIPTION "inotify API on the *BSD family of operating systems." |
72 |
| - ) |
| 58 | + #else() |
| 59 | + # On the BSD's, inotify is implemented through a library, libinotify. |
| 60 | + # But we disabled that for now because |
| 61 | + # - Ivykis currently supports inotify only for directory monitoring, not for files |
| 62 | + # - libinotify is just a wrapper around kqueue, why would we want a wrapper around |
| 63 | + # a natively supported solution, instead of using it directly |
| 64 | + # https://github.com/buytenh/ivykis/issues/37 |
| 65 | + |
| 66 | + #find_library(Inotify_LIBRARIES NAMES inotify) |
| 67 | + #include(FindPackageHandleStandardArgs) |
| 68 | + #find_package_handle_standard_args(Inotify |
| 69 | + # FOUND_VAR |
| 70 | + # Inotify_FOUND |
| 71 | + # REQUIRED_VARS |
| 72 | + # Inotify_LIBRARIES |
| 73 | + # Inotify_INCLUDE_DIRS |
| 74 | + #) |
| 75 | + #mark_as_advanced(Inotify_LIBRARIES Inotify_INCLUDE_DIRS) |
| 76 | + #include(FeatureSummary) |
| 77 | + #set_package_properties(Inotify PROPERTIES |
| 78 | + # URL "https://github.com/libinotify-kqueue/" |
| 79 | + # DESCRIPTION "inotify API on the *BSD family of operating systems." |
| 80 | + #) |
73 | 81 | endif()
|
74 |
| -else() |
75 |
| - set(Inotify_FOUND FALSE) |
76 | 82 | endif()
|
77 | 83 |
|
78 | 84 | mark_as_advanced(Inotify_LIBRARIES Inotify_INCLUDE_DIRS)
|
0 commit comments