Skip to content

Use ccache in the CMake toolchains - #8625

Merged
danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:cmake-ccache
Oct 28, 2026
Merged

danoli3 merged 1 commit into
openframeworks:masterfrom
danoli3:cmake-ccache

Conversation

@danoli3

@danoli3 danoli3 commented Oct 28, 2026

Copy link
Copy Markdown
Member

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.cmake sets the C and C++ compiler launchers when ccache is on PATH. The Linux 64, Linux ARM64, and Android toolchains include it.

-DOF_USE_CCACHE=OFF leaves 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.

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.
@danoli3
danoli3 merged commit 129151e into openframeworks:master Oct 28, 2026
24 checks passed
@danoli3
danoli3 deleted the cmake-ccache branch October 28, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant