Skip to content

Commit b742b94

Browse files
authored
Merge pull request #22 from saxbophone/josh/enable-ccache
Actually enable ccache if present
2 parents 2b1e47b + b567942 commit b742b94

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
@@ -4,6 +4,11 @@
44
# begin basic metadata
55
cmake_minimum_required(VERSION 3.12)
66

7+
find_program(CCACHE_PROGRAM ccache)
8+
if(CCACHE_PROGRAM)
9+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
10+
endif()
11+
712
project(dengr VERSION 0.0.0 LANGUAGES CXX)
813

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

0 commit comments

Comments
 (0)