diff --git a/build/libcvextern.sh b/build/libcvextern.sh index 261b340..14e8167 100644 --- a/build/libcvextern.sh +++ b/build/libcvextern.sh @@ -92,17 +92,15 @@ fi if [ ! -d "$directory" ]; then if [ -z "$lastArg" ]; then echo "Cloning master" - git clone https://github.com/emgucv/emgucv "$directory" + git clone --recurse-submodules --depth 1 https://github.com/emgucv/emgucv "$directory" else echo "Cloning $lastArg" - git clone --depth 1 --branch "$lastArg" https://github.com/emgucv/emgucv "$directory" + git clone --recurse-submodules --depth 1 --branch "$lastArg" https://github.com/emgucv/emgucv "$directory" fi - cd "$directory" - git submodule update --init --recursive -else - cd "$directory" fi +cd "$directory" + echo "- Bulding" if [ osVariant == "macOS" ]; then cd platforms/macos