forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for inotify.h and (optional) libinotify.so
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# $Id$ | ||
# | ||
# - Find libinotify | ||
# Find libinotify | ||
# | ||
# LIBINOTIFY_INCLUDE_DIR - where to find sys/inotify.h | ||
# LIBINOTIFY_LIBRARY - List of libraries when using libinotify | ||
# LIBINOTIFY_FOUND - True if libinotify found. | ||
|
||
|
||
if(LIBINOTIFY_INCLUDE_DIR) | ||
# Already in cache, be silent | ||
SET(LIBINOTIFY_FIND_QUIETLY TRUE) | ||
endif() | ||
|
||
FIND_PATH(LIBINOTIFY_INCLUDE_DIR sys/inotify.h) | ||
FIND_LIBRARY(LIBINOTIFY_LIBRARY inotify) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBINOTIFY DEFAULT_MSG LIBINOTIFY_LIBRARY LIBINOTIFY_INCLUDE_DIR) | ||
|
||
MARK_AS_ADVANCED(LIBINOTIFY_LIBRARY LIBINOTIFY_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters