From 487fef19633f96870636c58803186410a1fca185 Mon Sep 17 00:00:00 2001 From: stefanos Date: Sat, 8 Jul 2023 19:59:11 +0300 Subject: [PATCH] docs: `--init` added in `Building Transmission from Git (updating)` section (#5688) Whenever a new `third-party` submodule is being added, without the `--init` sub-command in `git submodule update --recursive`, the user will get bitten by compilation error due to an uninitialized submodule dependency. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41ec35bd4..1953de1f8 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ If you're new to building programs from source code, this is typically easier th $ make clean $ git submodule foreach --recursive git clean -xfd $ git pull --rebase --prune - $ git submodule update --recursive + $ git submodule update --init --recursive # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimzed binary with debug information. (preferred) # Use -DCMAKE_BUILD_TYPE=Release to build full optimized binary. $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..