Skip to content

Commit c53e732

Browse files
committed
Update submodule checkout instructions.
Older git versions don't support the --init option with "submodule update".
1 parent 7e2daeb commit c53e732

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ vcpkg install sdl2 poco freetype # Windows, should be pulled in automatically vi
3939

4040
### Configure and build projectMSDL
4141

42-
After cloning or updating the Git repository, always remember to update or initialize the submodules as well. this is
42+
After cloning or updating the Git repository, always remember to initialize and update the submodules as well. this is
4343
not required when building from a release tarball or ZIP.
4444

4545
```shell
46-
git submodule --init update
46+
# Newer git versions also support "git submodule update --init" to perform both step in a single command.
47+
git submodule init
48+
git submodule update
4749
```
4850

4951
If all dependencies are in the CMake and/or the system search directories, you can configure and build the application

0 commit comments

Comments
 (0)