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 CMake: libav/ffmpeg cleanups 2017-05-26 00:53:58 -07:00
DolphinCompileDefinitions.cmake Update Readme.md and various fixes 2017-12-20 10:54:51 +01:00
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 CMake: move modules from CMakeTests/ -> CMake/ 2017-02-07 22:55:27 -08:00
FindBacktrace.cmake CMake: move modules from CMakeTests/ -> CMake/ 2017-02-07 22:55:27 -08:00
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 CMake: fix FindFFmpeg when ffmpeg isn't found 2017-05-26 00:53:58 -07:00
FindHIDAPI.cmake CMake: clean up HIDAPI build 2017-04-27 02:41:00 -07:00
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 CMake: move modules from CMakeTests/ -> CMake/ 2017-02-07 22:55:27 -08:00
FindOpenSLES.cmake CMake: move modules from CMakeTests/ -> CMake/ 2017-02-07 22:55:27 -08:00
FindOProfile.cmake CMakeLists: Define an OProfile target and use it 2018-04-13 19:35:17 -04:00
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