Skip to content

Commit 2fdedc2

Browse files
committed
only require NEON cpu features for windows arm builds: CI runners don't have anything beyond that apparently
1 parent e9b9bb2 commit 2fdedc2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

build.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,12 @@ $opencvArgs = @(
592592
"-DZLIB_INCLUDE_DIR=$installIncludeDir",
593593
"-DZLIB_LIBRARY_RELEASE=$zlibLib"
594594
)
595+
if ($env:OS -eq "win64-arm64") {
596+
$opencvArgs += @(
597+
"-DCPU_BASELINE=NEON",
598+
"-DCPU_BASELINE_REQUIRE=NEON"
599+
)
600+
}
595601
Invoke-CMakeConfigure $opencvArgs
596602
Invoke-CMakeBuild
597603
Invoke-CMakeInstall

0 commit comments

Comments
 (0)