Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmake] RP_FindQt[56]andKF[56].cmake: Use EXECUTE_PROCESS() instead o…
…f EXEC_PROGRAM(); comment out KDEInstallDirs.cmake. EXEC_PROGRAM() is deprecated as of CMake 3.0. KDEInstallDirs.cmake isn't actually needed and prints warnings due to some KDE-specific variables not being consistent. Also remove the "-fpic -fPIC" CFLAGS/CXXFLAGS addition, since we're handling this using the POSITION_INDEPENDENT_CODE property now. Warnings from the KF5 version: CMake Warning (dev) at cmake/libs/RP_FindQt5andKF5.cmake:65 (EXEC_PROGRAM): Policy CMP0153 is not set: The exec_program command should not be called. Run "cmake --help-policy CMP0153" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Use execute_process() instead. Call Stack (most recent call first): src/kde/kf5/CMakeLists.txt:6 (FIND_QT5_AND_KF5) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning at /usr/share/ECM/kde-modules/KDEInstallDirsCommon.cmake:385 (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): /usr/share/ECM/kde-modules/KDEInstallDirs5.cmake:230 (include) /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include) cmake/libs/RP_FindQt5andKF5.cmake:26 (INCLUDE) src/kde/kf5/CMakeLists.txt:6 (FIND_QT5_AND_KF5)
- Loading branch information