File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1043,18 +1043,21 @@ function Build-CMakeProject {
1043
1043
}
1044
1044
}
1045
1045
1046
- if ($UseMSVCCompilers.Contains (" C" )) {
1047
- TryAdd- KeyValue $Defines CMAKE_C_COMPILER cl
1048
- if ($EnableCaching ) {
1046
+ if ($EnableCaching ) {
1047
+ if ($UseMSVCCompilers.Contains (" C" ) -Or $UsePinnedCompilers.Contains (" C" )) {
1049
1048
TryAdd- KeyValue $Defines CMAKE_C_COMPILER_LAUNCHER sccache
1050
1049
}
1050
+ if ($UseMSVCCompilers.Contains (" CXX" ) -Or $UsePinnedCompilers.Contains (" CXX" )) {
1051
+ TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER_LAUNCHER sccache
1052
+ }
1053
+ }
1054
+
1055
+ if ($UseMSVCCompilers.Contains (" C" )) {
1056
+ TryAdd- KeyValue $Defines CMAKE_C_COMPILER cl
1051
1057
Append- FlagsDefine $Defines CMAKE_C_FLAGS $CFlags
1052
1058
}
1053
1059
if ($UseMSVCCompilers.Contains (" CXX" )) {
1054
1060
TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER cl
1055
- if ($EnableCaching ) {
1056
- TryAdd- KeyValue $Defines CMAKE_CXX_COMPILER_LAUNCHER sccache
1057
- }
1058
1061
Append- FlagsDefine $Defines CMAKE_CXX_FLAGS $CXXFlags
1059
1062
}
1060
1063
if ($UsePinnedCompilers.Contains (" ASM" ) -Or $UseBuiltCompilers.Contains (" ASM" )) {
You can’t perform that action at this time.
0 commit comments