We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5914c5c commit 0f8cc82Copy full SHA for 0f8cc82
cmake/ccache.cmake
@@ -1,9 +1,9 @@
1
# Use ccache if found ccache program
2
3
-find_program(CCACHE_FOUND ccache)
+find_program(CCACHE_PATH ccache)
4
5
-if(CCACHE_FOUND)
+if(CCACHE_PATH)
6
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)
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PATH})
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PATH})
+endif(CCACHE_PATH)
0 commit comments