Skip to content

Commit

Permalink
Add a configure time check validating that submodules are in place.
Browse files Browse the repository at this point in the history
This fixes #147.
  • Loading branch information
bbannier committed Apr 8, 2020
1 parent 68a50ef commit 7e0c733
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
"
source_dir="$(cd "$(dirname "$0")" && pwd)"

if [ ! -e "$source_dir/3rdparty/doctest/CMakeLists.txt" ] && [ -d "$source_dir/.git" ]; then
echo "\
You seem to be missing the content of the 3rdparty/doctest directory.
This typically means that you performed a non-recursive git clone of
Spict. To check out the required subdirectories, please execute:
( cd $source_dir && git submodule update --recursive --init )
" >&2;
exit 1;
fi

# Function to append a CMake cache entry definition to the
# cmake_cache_entries variable.
# $1 is the cache entry variable name
Expand Down

0 comments on commit 7e0c733

Please sign in to comment.