Skip to content

Commit

Permalink
Introduce ccache during the build. Speeds up the (re)builds!
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 committed Dec 16, 2023
1 parent 120c101 commit ee21590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if(UNITTEST)
message(STATUS "Building the unit tests")
endif()

find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
endif()

# Build docs using Doxygen
if(DOXYGEN)
include(Doxygen)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ For the **GNU/Linux build** you need at least:
- Ninja build system (Package: `ninja-build`)
- Libcurl (Package: `libcurl4-openssl-dev`)
- GTK3/Gtkmm3 (Package: `libgtkmm-3.0-dev`)
- Ccache (optional, but much **recommended**: `ccache`)

**Dependencies for testing:**

Expand Down

0 comments on commit ee21590

Please sign in to comment.