Skip to content

Commit faa9122

Browse files
committed
Actually enable ccache if present
1 parent e50e9fd commit faa9122

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# minimum CMake version required for C++20 support, among other things
33
cmake_minimum_required(VERSION 3.12)
44

5+
find_program(CCACHE_PROGRAM ccache)
6+
if(CCACHE_PROGRAM)
7+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
8+
endif()
9+
510
project(proj VERSION 0.0.0 LANGUAGES CXX)
611

712
# set the C++ standard to use to C++20 always

0 commit comments

Comments
 (0)