From 0ce33dd3e562d7d0f5da92125461fcecd5f516d3 Mon Sep 17 00:00:00 2001 From: Mark Horvath Date: Tue, 1 Jul 2025 15:48:40 +0000 Subject: [PATCH] Extend build-opencv.sh to handle more targets --- scripts/build-opencv.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-opencv.sh b/scripts/build-opencv.sh index e0506e701..5b163759e 100755 --- a/scripts/build-opencv.sh +++ b/scripts/build-opencv.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# SPDX-FileCopyrightText: 2024 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: 2024 - 2025 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 @@ -9,7 +9,7 @@ # The build artifacts are placed in the `build` directory. # # Arguments: -# 1: Target to build. Defaults to default target'. +# Targets to build. Defaults to default target'. # # To target Android devices the following command can be used: # BUILD_ID=opencv-android \ @@ -71,7 +71,7 @@ if [[ -z "${OPENCV_PATH:-}" ]]; then exit 1 fi -IFS=' ' read -r -a CMAKE_TARGETS <<< "${1:-}" +IFS=' ' read -r -a CMAKE_TARGETS <<< "${@:-}" IFS=' ' read -r -a EXTRA_CMAKE_ARGS_ARRAY <<< "${EXTRA_CMAKE_ARGS}" # ------------------------------------------------------------------------------ -- GitLab