Skip to content

Commit 9e08ede

Browse files
committed
Adding OpenCV_DIR path
1 parent 00051b4 commit 9e08ede

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

playbooks/supplemental/cvml/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,9 @@ $ErrorActionPreference = "Stop"
377377
$playbookRoot = (Get-Location).Path
378378
379379
if (-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"
382383
New-Item -ItemType Directory -Force -Path $work | Out-Null
383384
384385
try {
@@ -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"

0 commit comments

Comments
 (0)