From: Dominik Schmidt Date: Fri, 26 May 2017 11:24:54 +0000 (+0200) Subject: Fix build on Debian 7 (CMake pre 2.8.12) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~710^2~3^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=78dede2ac4468d5fc9bae79f57a49d591c3782fc;p=nextcloud-desktop.git Fix build on Debian 7 (CMake pre 2.8.12) --- diff --git a/cmake/modules/FindQt5Keychain.cmake b/cmake/modules/FindQt5Keychain.cmake index 6848763fe..4aff32d6f 100644 --- a/cmake/modules/FindQt5Keychain.cmake +++ b/cmake/modules/FindQt5Keychain.cmake @@ -13,7 +13,9 @@ # so that it doesn't pull a different Qt version. For that reason # first look in the Qt lib directory for QtKeychain. get_target_property(_QTCORE_LIB_PATH Qt5::Core IMPORTED_LOCATION_RELEASE) -get_filename_component(QT_LIB_DIR "${_QTCORE_LIB_PATH}" DIRECTORY) + +# Use PATH here because Debian 7.0 has CMake 2.8.9 and DIRECTORY is only available from 2.8.12+ +get_filename_component(QT_LIB_DIR "${_QTCORE_LIB_PATH}" PATH) find_path(QTKEYCHAIN_INCLUDE_DIR NAMES