Fix build with old cmake
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 14 Aug 2015 12:21:40 +0000 (14:21 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 14 Aug 2015 12:21:40 +0000 (14:21 +0200)
DIRECOTRY is new in 2.8.12.
Uses PATH instead

cmake/modules/FindINotify.cmake

index 19f43aa70cb74657397a195b57c729138f1d0a6f..d57a49fa7e7ea2287a493a70516c1ee008c5b1e5 100644 (file)
@@ -15,7 +15,7 @@ mark_as_advanced(INOTIFY_INCLUDE_DIR)
 
 find_library(INOTIFY_LIBRARY inotify PATH_SUFFIXES lib/inotify)
 
-get_filename_component(INOTIFY_LIBRARY_DIR ${INOTIFY_LIBRARY} DIRECTORY)
+get_filename_component(INOTIFY_LIBRARY_DIR ${INOTIFY_LIBRARY} PATH)
 mark_as_advanced(INOTIFY_LIBRARY_DIR)
 
 # all listed variables are TRUE