dolphin/CMake
Neui f91413db8f CMake: Fix CCache support when already using _LAUNCHER
The official ccache documentation[1] recommends to set
`CMAKE_C(XX)_COMPILER_LAUNCHER` to ccache to enable ccache.
These also work as envionment variables (supported by CMake itself).
However, using these instructions generates the following error during
building:

    ccache: error: Recursive invocation (the name of the ccache binary must be "ccache")

This is because Dolphin adds an additional command ccache layer (ccache
ccache compiler ...).

This fixes that issue by checking for `CMAKE_C(XX)_COMPILER_LAUNCHER`
before inserting our own. Also, use `CMAKE_C(XX)_COMPILER_LAUNCHER`
to add ccache because the CMake docs discourages the use of
`RULE_LAUNCH_COMPILE` in favour of `CMAKE_C(XX)_COMPILER_LAUNCHER`.

[1]: https://github.com/ccache/ccache/wiki/CMake
2024-06-08 16:05:14 +02:00
..
CCache.cmake CMake: Fix CCache support when already using _LAUNCHER 2024-06-08 16:05:14 +02:00
CheckAndAddFlag.cmake CMake: Don't omit frame pointer on RelWithDebInfo builds 2022-08-10 23:48:56 -05:00
CheckLib.cmake
DolphinCompileDefinitions.cmake
DolphinDisableWarningsMSVC.cmake CMake: Hide warnings in Externals also for non-msvc. 2024-03-19 01:12:52 -05:00
DolphinLibraryTools.cmake use pkg_search_module to find minizip-ng or minizip 2024-05-07 04:25:04 +00:00
DolphinPostprocessBundle.cmake Match path type to BundleUtilities when running fixup_bundle 2020-03-29 20:04:03 -05:00
FindALSA.cmake
FindBacktrace.cmake
FindBlueZ.cmake cmake: Silence warnings. 2020-09-08 21:18:40 -07:00
FindCUBEB.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindEGL.cmake CMake: Make X11 and EGL optional 2018-10-20 21:11:34 +10:00
FindFFmpeg.cmake
FindHIDAPI.cmake
FindIconv.cmake CMake: Add custom FindIconv 2023-04-08 21:43:03 -05:00
FindLIBEVDEV.cmake cmake: Silence warnings. 2020-09-08 21:18:40 -07:00
FindLIBMGBA.cmake Fix build when using mGBA in unorthodox location 2023-02-14 22:24:02 +03:00
FindLIBUDEV.cmake cmake: Silence warnings. 2020-09-08 21:18:40 -07:00
FindLibUSB.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindLZO.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindMBEDTLS.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindMINIUPNPC.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindOpenAL.cmake
FindOpenSLES.cmake
FindOProfile.cmake
FindPowerShell.cmake WinUpdater: Check OS and VC++ Redist versions. 2022-09-20 15:57:50 -07:00
Findpugixml.cmake CMake: Fix case in FindPugixml resulting in false negative 2018-05-30 09:12:24 +02:00
FindPulseAudio.cmake cmake: Silence warnings. 2020-09-08 21:18:40 -07:00
FindSFML.cmake CMake: Use targets for all optionally-external dependencies 2023-06-15 01:41:41 -05:00
FindSYSTEMD.cmake cmake: Silence warnings. 2020-09-08 21:18:40 -07:00
FlagsOverride.cmake CMake: Fix MSVC flags for Release/RelWithDebInfo 2021-04-27 12:54:18 +02:00
RemoveCompileFlag.cmake cmake: Use Policy CMP0117 for more sensible RTTI flag configuration on MSVC. 2022-05-22 00:30:56 +02:00
ScmRevGen.cmake ScmRevGen: Generate Info.plist for MacUpdater 2024-04-21 13:28:21 -04:00