Skip to content

build: Add ccache support - #5686

Merged
kimkulling merged 4 commits into
assimp:masterfrom
ochafik:ccache
Aug 30, 2024
Merged

kimkulling merged 4 commits into
assimp:masterfrom
ochafik:ccache

Conversation

@ochafik

@ochafik ochafik commented Jul 25, 2024

Copy link
Copy Markdown
Contributor

Speeds up (re)builds with ccache, if installed / detected (can disable w/ -DASSIMP_BUILD_USE_CCACHE=0)

rm -fR build
# First build takes a while:
cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build -j

rm -fR build
# Rebuild w/ same args / same content near instant:
cmake -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build -j

@turol

turol commented Jul 27, 2024

Copy link
Copy Markdown
Member

Why? It's much easier to either override the compiler with CMake options or override PATH environment variable to point at the ccache wrappers.

@kimkulling

Copy link
Copy Markdown
Member

So what would you do to improve the support?

@turol

turol commented Aug 3, 2024

Copy link
Copy Markdown
Member

What support needs improving? It's already possibly to use ccache with the current CMakeLists.txt.

@kimkulling

Copy link
Copy Markdown
Member

@kimkulling

Copy link
Copy Markdown
Member

I guess just having it implicitely shall be tested. So will merge it.

@kimkulling
kimkulling merged commit 88340d0 into assimp:master Aug 30, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

@kimkulling
kimkulling self-requested a review August 30, 2024 11:23
@kimkulling kimkulling added Improvement Improvement reuqests Build Global flag to mark build relates topics labels Aug 30, 2024
kimkulling added a commit that referenced this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Global flag to mark build relates topics Improvement Improvement reuqests

Projects

Development

Successfully merging this pull request may close these issues.

3 participants