You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/Modules/UseCompilerCache.cmake
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,8 @@ function(UseCompilerCache)
57
57
return()
58
58
endif()
59
59
60
-
if(CCACHE_PROGRAMMATCHES"clcache")
61
-
message(FATAL_ERROR "clcache can't be configured as a compiler. Please use environment variables CXX and C to set the compiler as clcache.")
60
+
if(CMAKE_GENERATORMATCHES"Visual")
61
+
message(FATAL_ERROR "MSVC isn't compatible with current solutions. Please rename compiler cache to cl.exe and prepend its location in env PATH variable")
62
62
return()
63
63
endif()
64
64
@@ -68,7 +68,6 @@ function(UseCompilerCache)
68
68
foreach(line ${output})
69
69
string(TOLOWER ${line} line)
70
70
string(REGEX REPLACE "^ccache version ([\\.0-9]+)$""\\1"version"${line}")
71
-
#if(version AND NOT "x${line}" STREQUAL "x${version}")
0 commit comments