#!/usr/bin/env bash

set -eou pipefail

# Change to the directory containing this script, because that will be somewhere
# in the Bazel workspace.
builtin cd "$(dirname "$(readlink --canonicalize "${BASH_SOURCE[0]}")")"

echo $(bazel info --config=default bazel-bin)/continuum/cmake_build/build_scope

bazel build --color=yes //continuum/cmake_build:build_scope \
    --config=default \
    --aspects //continuum/cmake_build:cmake_aspect.bzl%generate_cmake \
    --output_groups=makefiles >&2
