deps: add libinotify-kqueue on BSDs after 8dd2cd41fb (#9197)
src/config/ConfigWatcher.cpp:2:10: fatal error: 'sys/inotify.h' file not found
2 | #include <sys/inotify.h>
| ^~~~~~~~~~~~~~~
This commit is contained in:
parent
5fd90548dc
commit
d2773d7a4e
3 changed files with 8 additions and 0 deletions
|
|
@ -197,6 +197,12 @@ if(NOT HAS_TIMERFD AND epoll_FOUND)
|
|||
target_link_libraries(Hyprland PkgConfig::epoll)
|
||||
endif()
|
||||
|
||||
check_include_file("sys/inotify.h" HAS_INOTIFY)
|
||||
pkg_check_modules(inotify IMPORTED_TARGET libinotify)
|
||||
if(NOT HAS_INOTIFY AND inotify_FOUND)
|
||||
target_link_libraries(Hyprland PkgConfig::inotify)
|
||||
endif()
|
||||
|
||||
if(LEGACY_RENDERER)
|
||||
message(STATUS "Using the legacy GLES2 renderer!")
|
||||
add_compile_definitions(LEGACY_RENDERER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue