Skip to content

Commit 0acadfd

Browse files
committed
build fix
1 parent 779377c commit 0acadfd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build-ffmpeg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ execute() {
168168
}
169169

170170
cmake() {
171-
command cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "$@"
171+
if [[ "$1" == "--build" ]]; then
172+
command cmake "$@"
173+
else
174+
command cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "$@"
175+
fi
172176
}
173177

174178

0 commit comments

Comments
 (0)