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.
2 parents 299e959 + 0f8cc82 commit dbc87e3Copy full SHA for dbc87e3
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