diff options
author | Nikias Bassen | 2010-11-27 14:41:23 +0100 |
---|---|---|
committer | Nikias Bassen | 2010-11-27 14:41:23 +0100 |
commit | 0ca8f1c05bea2c1f4d53aa165079588ea6519847 (patch) | |
tree | 28e0e59a3e48fc228d1758aa8668a65d41bda6f1 /libusbmuxd | |
parent | 02252a478689c5bb22552a3bce06b7bbe234cb6c (diff) | |
download | usbmuxd-0ca8f1c05bea2c1f4d53aa165079588ea6519847.tar.gz usbmuxd-0ca8f1c05bea2c1f4d53aa165079588ea6519847.tar.bz2 |
libusbmuxd: allow building without inotify support
Diffstat (limited to 'libusbmuxd')
-rw-r--r-- | libusbmuxd/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt index 402d726..a3d5fbe 100644 --- a/libusbmuxd/CMakeLists.txt +++ b/libusbmuxd/CMakeLists.txt @@ -1,10 +1,14 @@ include_directories (${CMAKE_SOURCE_DIR}/common) find_package(Threads) + +option(WANT_INOTIFY "Build with inotify support" ON) +if (WANT_INOTIFY) find_package(Inotify) if (INOTIFY_FOUND) add_definitions("-DHAVE_INOTIFY") message("-- libusbmuxd will be built with inotify support") endif() +endif(WANT_INOTIFY) add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) find_library (PTHREAD pthread) |