Skip to content

Commit

Permalink
autogen: add message when submodule is missing
Browse files Browse the repository at this point in the history
Add message to advise users to run git submodule checkout when they just
cloned the repository.
  • Loading branch information
hzhou committed Mar 28, 2022
1 parent c8f751b commit 832fa07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,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 @@ -190,9 +193,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

0 comments on commit 832fa07

Please sign in to comment.