Repository navigation
Use ccache in the CMake toolchains - #8625
Merged
Merged
Conversation
When ccache is installed, the C and C++ compilers go through it. -DOF_USE_CCACHE=OFF turns that off, and a launcher that is already set is left alone.
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Linux makefile ccache change from #8620 is already on master (
2ba19770). This is the CMake side of that default.libs/openFrameworksCompiled/project/CMake/ccache.cmakesets the C and C++ compiler launchers whenccacheis onPATH. The Linux 64, Linux ARM64, and Android toolchains include it.-DOF_USE_CCACHE=OFFleaves the compilers direct. A launcher that is already set, including-DCMAKE_CXX_COMPILER_LAUNCHER=ccache, is left alone.The core and app CMake projects on #8586 use the same file (
75c01b9).Tests
A script-mode configure found ccache, kept a launcher that was already set, and skipped ccache when
OF_USE_CCACHE=OFF.