diff options
Diffstat (limited to 'find-modules/FindInotify.cmake')
-rw-r--r-- | find-modules/FindInotify.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/find-modules/FindInotify.cmake b/find-modules/FindInotify.cmake index c1c5cc1b..5206b733 100644 --- a/find-modules/FindInotify.cmake +++ b/find-modules/FindInotify.cmake @@ -54,8 +54,13 @@ if(Inotify_INCLUDE_DIRS) DESCRIPTION "inotify API on the *BSD family of operating systems." ) endif() + if(NOT TARGET Inotify::Inotify) + add_library(Inotify::Inotify INTERFACE IMPORTED) + set_property(TARGET Inotify::Inotify PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${Inotify_INCLUDE_DIRS}") + set_property(TARGET Inotify::Inotify PROPERTY INTERFACE_LINK_LIBRARIES "${Inotify_LIBRARIES}") + endif() else() - set(Inotify_FOUND FALSE) + set(Inotify_FOUND FALSE) endif() mark_as_advanced(Inotify_LIBRARIES Inotify_INCLUDE_DIRS) |