Skip to content

Commit

Permalink
Add option to specify external directories for sources (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon authored Feb 4, 2024
1 parent 55e1f91 commit 1adf5c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ set -euo pipefail

CONFIG="${1?}"
VERSION="${2?}"
OPENCV_DIR="${3-opencv}"

cmake opencv -B build_$1 \
cmake opencv "$OPENCV_DIR" -B build_$1 \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=$1 \
-DOPENCV_FORCE_3RDPARTY_BUILD=ON \
Expand Down

0 comments on commit 1adf5c1

Please sign in to comment.