Including KF5KIOConfig from CMakeLists.txt fails as follows: + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:622 (message): KDE_INSTALL_BINDIR, KDE_INSTALL_LIBDIR and KDE_INSTALL_INCLUDEDIR should either all be absolute paths or all be relative paths. Call Stack (most recent call first): CMakeLists.txt:17 (include) -- Could not set up the appstream test. appstreamcli is missing. -- Looking for __GLIBC__ -- Looking for __GLIBC__ - found -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Success CMake Error at /usr/lib64/cmake/KF5KIO/KF5KIOConfig.cmake:42 (include): include could not find load file: CMakeFindDependencyMacro $ cat KF5KIOConfig.cmake.in @PACKAGE_INIT@ # Any changes in this ".cmake" file will be overwritten by CMake, the source is the ".cmake.in" file. set(KCookieServer_DBUS_INTERFACE "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@/kf5_org.kde.KCookieServer.xml") set(KSlaveLauncher_DBUS_INTERFACE "@PACKAGE_KDE_INSTALL_DBUSINTERFACEDIR@/kf5_org.kde.KSlaveLauncher.xml") include(CMakeFindDependencyMacro)
CMakeFindDependencyMacro is a built-in CMake macro introduced in cmake 3.0. The default cmake in EPEL7 is too old (2.8.x), you must use cmake3 (from cmake3 package) on EPEL7 to build apps against Frameworks packages. To an extent, the bug lies in the project you are compiling which requires KIO - the project should have cmake_minimum_required(VERSION 3.0).