Skip to content

Commit e6c6ee3

Browse files
author
Olivier Chafik
committed
Update CMakeLists.txt
1 parent 4156384 commit e6c6ee3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ggml/src/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,13 @@ if (GGML_CCACHE)
9696
find_program(GGML_SCCACHE_FOUND sccache)
9797

9898
if (GGML_CCACHE_FOUND OR GGML_SCCACHE_FOUND)
99-
set(GGML_CCACHE_VARIANT $<IF:$<BOOL:${GGML_CCACHE_FOUND}>,ccache,sccache>)
99+
if(GGML_CCACHE_FOUND)
100+
set(GGML_CCACHE_VARIANT ccache)
101+
else()
102+
set(GGML_CCACHE_VARIANT sccache)
103+
endif()
100104
# TODO: should not be set globally
101-
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${GGML_CCACHE_VARIANT})
105+
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${GGML_CCACHE_VARIANT}")
102106
set(ENV{CCACHE_SLOPPINESS} time_macros)
103107
message(STATUS "${GGML_CCACHE_VARIANT} found, compilation results will be cached. Disable with GGML_CCACHE=OFF.")
104108
else()

0 commit comments

Comments
 (0)