use CMAKE_GENERATOR in docker.sh

This commit is contained in:
tooomm 2025-05-31 21:29:03 +02:00 committed by GitHub
parent 1434dc8dce
commit fb3390d2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,7 +147,9 @@ function RUN ()
if [[ $CCACHE_DIR ]]; then
args+=(--mount "type=bind,source=$CCACHE_DIR,target=/.ccache")
args+=(--env "CCACHE_DIR=/.ccache")
args+=(--env "CMAKE_GENERATOR="Ninja"")
fi
if [[ -n "$CMAKE_GENERATOR" ]]; then
args+=(--env "CMAKE_GENERATOR=$CMAKE_GENERATOR")
fi
docker run "${args[@]}" $RUN_ARGS "$IMAGE_NAME" bash "$BUILD_SCRIPT" $RUN_OPTS "$@"
return $?