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 4156384 commit e6c6ee3Copy full SHA for e6c6ee3
ggml/src/CMakeLists.txt
@@ -96,9 +96,13 @@ if (GGML_CCACHE)
96
find_program(GGML_SCCACHE_FOUND sccache)
97
98
if (GGML_CCACHE_FOUND OR GGML_SCCACHE_FOUND)
99
- set(GGML_CCACHE_VARIANT $<IF:$<BOOL:${GGML_CCACHE_FOUND}>,ccache,sccache>)
+ if(GGML_CCACHE_FOUND)
100
+ set(GGML_CCACHE_VARIANT ccache)
101
+ else()
102
+ set(GGML_CCACHE_VARIANT sccache)
103
+ endif()
104
# TODO: should not be set globally
- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${GGML_CCACHE_VARIANT})
105
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
106
set(ENV{CCACHE_SLOPPINESS} time_macros)
107
message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
108
else()
0 commit comments