rom-properties/cmake
David Korth 29ce1c8393 [cmake] RP_FindQt[56]andKF[56].cmake: Use EXECUTE_PROCESS() instead of 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)
2025-01-06 23:37:46 -05:00
..
libs [cmake] RP_FindQt[56]andKF[56].cmake: Use EXECUTE_PROCESS() instead of EXEC_PROGRAM(); comment out KDEInstallDirs.cmake. 2025-01-06 23:37:46 -05:00
macros Add some workarounds for issues encountered on NixOS. 2024-10-25 01:02:40 -04:00
platform [cmake] gcc.cmake: Enable C++ assertions and debug mode, when building for Debug. 2024-11-17 11:50:42 -05:00
toolchain [scripts] package.cmd: Add ARM, ARM64, and ARM64EC. 2023-07-16 18:28:21 -04:00
cmake_uninstall.cmake.in [cmake] cmake_uninstall.cmake.in: Use EXECUTE_PROCESS() instead of EXEC_PROGRAM(). 2024-03-03 12:51:03 -05:00
options.cmake The KDE 6.x and GTK 4.x UI frontends are no longer experimental. 2024-10-25 01:20:33 -04:00
platform.cmake [cmake] Add flags for RelWithDebInfo. 2024-03-24 16:58:18 -04:00