Skip to content

Commit

Permalink
build.ps1 - Set RuntimeLibrary target using -DCEF_RUNTIME_LIBRARY_FLA…
Browse files Browse the repository at this point in the history
…G=/MD

Attempt at #71
  • Loading branch information
amaitland committed Sep 26, 2018
1 parent e818bb3 commit 72b7113
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,11 @@ try
# Remove previously generated CMake data for the different platform/toolchain
rm CMakeCache.txt -ErrorAction:SilentlyContinue
rm -r CMakeFiles -ErrorAction:SilentlyContinue
cmake -G "$CmakeGenerator$CmakeArch" -DUSE_SANDBOX=Off
cmake -G "$CmakeGenerator$CmakeArch" -DUSE_SANDBOX=Off -DCEF_RUNTIME_LIBRARY_FLAG=/MD
popd
$env:CEFSHARP_BUILD_IS_BOOTSTRAPPED = "$Toolchain$Platform"
}

# Manually change project file to compile using /MDd and /MD
(Get-Content $CefProject) | Foreach-Object {$_ -replace "<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>", '<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>'} | Set-Content $CefProject
(Get-Content $CefProject) | Foreach-Object {$_ -replace "<RuntimeLibrary>MultiThreaded</RuntimeLibrary>", '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>'} | Set-Content $CefProject

$Arguments = @(
"$CefProject",
"/t:rebuild",
Expand Down

0 comments on commit 72b7113

Please sign in to comment.