Skip to content

Commit 0f8cc82

Browse files
committed
Fix ccache refernece.
1 parent 5914c5c commit 0f8cc82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmake/ccache.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Use ccache if found ccache program
22

3-
find_program(CCACHE_FOUND ccache)
3+
find_program(CCACHE_PATH ccache)
44

5-
if(CCACHE_FOUND)
5+
if(CCACHE_PATH)
66
message(STATUS "Ccache is founded, use ccache to speed up compile.")
7-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
8-
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
9-
endif(CCACHE_FOUND)
7+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PATH})
8+
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PATH})
9+
endif(CCACHE_PATH)

0 commit comments

Comments
 (0)