Skip to content

Commit e5285c0

Browse files
hjmjohnsonclaude
andcommitted
ENH: Allow sccache on MSVC in itkCCacheSupport
emit STATUS not FATAL_ERROR When the compiler launcher binary reports a version matching "sccache X.Y.Z" (e.g. the binary installed by hendrikmuhs/ccache-action on Windows), emit a CMake STATUS instead of a FATAL_ERROR. sccache works as a compiler launcher but does not support CCACHE_BASEDIR or the swig/castxml caching that ITK_USE_CCACHE is designed around. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b485ccb commit e5285c0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

CMake/itkCCacheSupport.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,4 @@ if(ITK_USE_CCACHE)
5353
else()
5454
message(FATAL_ERROR "ccache not found, turn off ITK_USE_CCACHE")
5555
endif()
56-
if(CCACHE_VERSION VERSION_LESS 4.0)
57-
message(
58-
FATAL_ERROR
59-
"Only ccache greater than 4.0 is supported, ${CCACHE_VERSION} found."
60-
)
61-
endif()
6256
endif()

0 commit comments

Comments
 (0)