Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogen: add message when submodule is missing #5912

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ ProgHomeDir() {
# checking and patching submodules
check_submodule_presence() {
if test ! -f "$SRCROOTDIR/$1/configure.ac"; then
error "Submodule $1 is not checked out"
error "Submodule $1 is not checked out."
error "if you just git cloned this repository, run"
error " git submodule update --init"
error "to checkout the submodules."
exit 1
fi
}
Expand Down Expand Up @@ -191,9 +194,6 @@ set_externals() {
if test -z "$externals" ; then
#TODO: if necessary, run: git submodule update --init

# hwloc is always required
check_submodule_presence modules/hwloc

# external packages that require autogen.sh to be run for each of them
externals="test/mpi"

Expand Down