File tree Expand file tree Collapse file tree
playbooks/supplemental/cvml Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -377,8 +377,9 @@ $ErrorActionPreference = "Stop"
377377$playbookRoot = (Get-Location).Path
378378
379379if (-not $env:OPENCV_INSTALL_ROOT) {throw "OPENCV_INSTALL_ROOT is not set."}
380+ if (-not $env:OpenCV_DIR) {throw "OpenCV_DIR is not set."}
380381
381- $work = Join-Path $env:TEMP ( "cvml-test-" + [System.Guid]::NewGuid().ToString())
382+ $work = $work = Join-Path (Get-Location) "cvml-test"
382383New-Item -ItemType Directory -Force -Path $work | Out-Null
383384
384385try {
@@ -403,7 +404,7 @@ try {
403404 $samplesDir = Join-Path $cvmlRoot "samples"
404405 $buildDir = Join-Path $samplesDir "build"
405406
406- cmake -S $samplesDir -B $buildDir -DOPENCV_INSTALL_ROOT="$env:OPENCV_INSTALL_ROOT"
407+ cmake -S $samplesDir -B $buildDir -DOPENCV_INSTALL_ROOT="$env:OPENCV_INSTALL_ROOT" -DOpenCV_DIR="$env:OpenCV_DIR"
407408 cmake --build $buildDir --config Release --parallel
408409
409410 $faceExe = Join-Path $buildDir "cvml-sample-face-detection\Release\cvml-sample-face-detection.exe"
You can’t perform that action at this time.
0 commit comments