Skip to content

Commit 388bdbf

Browse files
committed
cmake: use new syntax to utilize ccache
1 parent 43b845d commit 388bdbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "" FORCE)
99
# Configure CCache if available
1010
find_program(CCACHE_PROGRAM ccache)
1111
if(CCACHE_PROGRAM)
12-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
13-
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
12+
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
13+
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
1414
endif()
1515

1616
# ===== Options =====

0 commit comments

Comments
 (0)