Skip to content

Commit 73ad50b

Browse files
committed
ccache for everyone
1 parent a782b07 commit 73ad50b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ option(OPENCALIBRATION_CLANG_TIDY "Run clang-tidy during compilation" OFF)
1414

1515
# =====================================
1616

17+
find_program(CCACHE_PROGRAM ccache)
18+
if(CCACHE_PROGRAM)
19+
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
20+
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}")
21+
endif()
22+
1723
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1824

1925
set(CMAKE_CXX_STANDARD 17)

0 commit comments

Comments
 (0)