Skip to content

Commit e818bb3

Browse files
committed
Revert "build.ps1 - Set RuntimeLibrary target using CEF_RUNTIME_LIBRARY_FLAG=MD"
This reverts commit 75edf68.
1 parent 75edf68 commit e818bb3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,15 @@ 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-
#Change cmake to generate with /MDd and /MD
314-
cmake -G "$CmakeGenerator$CmakeArch" -DUSE_SANDBOX=Off -DCEF_RUNTIME_LIBRARY_FLAG="MD"
313+
cmake -G "$CmakeGenerator$CmakeArch" -DUSE_SANDBOX=Off
315314
popd
316315
$env:CEFSHARP_BUILD_IS_BOOTSTRAPPED = "$Toolchain$Platform"
317316
}
318317

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+
319322
$Arguments = @(
320323
"$CefProject",
321324
"/t:rebuild",

0 commit comments

Comments
 (0)