Skip to content

Commit

Permalink
OpenCV build script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheil Kumar committed Oct 29, 2021
1 parent 1020a0f commit a9a59af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions external/tools/CMakeConfigureOpenCV.ps1
Expand Up @@ -30,7 +30,7 @@ else {
$Args.Add("-A " + $Architecture)
}

$Args.Add("-G " + $Generator)
$Args.Add("-G $Generator")
$Args.Add("-DCMAKE_SYSTEM_NAME=Windows")
$Args.Add("-DCMAKE_SYSTEM_VERSION=10.0")
$Args.Add("-DWITH_OPENCL=OFF")
Expand All @@ -54,5 +54,9 @@ if ($Clean) {
$Args.Add("--clean")
}

$Args.Add("-B " + $BuildDirectory)
cmake $Args "$PSScriptRoot\..\opencv"
$Args.Add("-B $BuildDirectory")
$Args.Add("$PSScriptRoot\..\opencv")

$ArgsStr = ($Args -join " ")
$ArgsStr
cmake $Args

0 comments on commit a9a59af

Please sign in to comment.