From: Olivier Goffart Date: Fri, 14 Aug 2015 12:21:40 +0000 (+0200) Subject: Fix build with old cmake X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1408^2~218 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bfb637e64dff2e3a9b6b83e0312eff5c313c2968;p=nextcloud-desktop.git Fix build with old cmake DIRECOTRY is new in 2.8.12. Uses PATH instead --- diff --git a/cmake/modules/FindINotify.cmake b/cmake/modules/FindINotify.cmake index 19f43aa70..d57a49fa7 100644 --- a/cmake/modules/FindINotify.cmake +++ b/cmake/modules/FindINotify.cmake @@ -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