File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -310,15 +310,12 @@ try
310310 # Remove previously generated CMake data for the different platform/toolchain
311311 rm CMakeCache.txt - ErrorAction:SilentlyContinue
312312 rm - r CMakeFiles - ErrorAction:SilentlyContinue
313- cmake - G " $CmakeGenerator$CmakeArch " - DUSE_SANDBOX= Off
313+ # Change cmake to generate with /MDd and /MD
314+ cmake - G " $CmakeGenerator$CmakeArch " - DUSE_SANDBOX= Off - DCEF_RUNTIME_LIBRARY_FLAG= " MD"
314315 popd
315316 $env: CEFSHARP_BUILD_IS_BOOTSTRAPPED = " $Toolchain$Platform "
316317 }
317318
318- # Manually change project file to compile using /MDd and /MD
319- (Get-Content $CefProject ) | Foreach-Object {$_ -replace " <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>" , ' <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>' } | Set-Content $CefProject
320- (Get-Content $CefProject ) | Foreach-Object {$_ -replace " <RuntimeLibrary>MultiThreaded</RuntimeLibrary>" , ' <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>' } | Set-Content $CefProject
321-
322319 $Arguments = @ (
323320 " $CefProject " ,
324321 " /t:rebuild" ,
You can’t perform that action at this time.
0 commit comments