aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-12-06 23:23:12 +0000
committerRosen Penev <rosenp@gmail.com>2021-12-06 15:43:08 -0800
commit7d81e61da2127685298d91ebc041ec26bc086d1a (patch)
tree83319edc6ccbb2c859883b9d0562d105d58d9392
parentb5684cb4b0635066b6807ae35b4af442860dcc44 (diff)
downloadextra-cmake-modules-7d81e61da2127685298d91ebc041ec26bc086d1a.tar.gz
extra-cmake-modules-7d81e61da2127685298d91ebc041ec26bc086d1a.tar.bz2
FindInotify.cmake: add support for SunOS
SunOS and variants (Solaris, OpenSolaris, illumos, etc al.) do not need a separate library for inotify.
-rw-r--r--find-modules/FindInotify.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/find-modules/FindInotify.cmake b/find-modules/FindInotify.cmake
index a5a7c710..c1c5cc1b 100644
--- a/find-modules/FindInotify.cmake
+++ b/find-modules/FindInotify.cmake
@@ -20,7 +20,7 @@ This will define the following variables:
``Inotify_INCLUDE_DIRS``
This has to be passed to target_include_directories()
-On Linux, the libraries and include directories are empty,
+On Linux and SunOS, the libraries and include directories are empty,
even though ``Inotify_FOUND`` may be set to TRUE. This is because
no special includes or libraries are needed. On other systems
these may be needed to use inotify.
@@ -31,9 +31,9 @@ Since 5.32.0.
find_path(Inotify_INCLUDE_DIRS sys/inotify.h)
if(Inotify_INCLUDE_DIRS)
-# On Linux there is no library to link against, on the BSDs there is.
+# On Linux and SunOS, there is no library to link against, on the BSDs there is.
# On the BSD's, inotify is implemented through a library, libinotify.
- if( CMAKE_SYSTEM_NAME MATCHES "Linux")
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS")
set(Inotify_FOUND TRUE)
set(Inotify_LIBRARIES "")
set(Inotify_INCLUDE_DIRS "")