Improve build instructions to deal with symlinks under Windows

This commit is contained in:
Martchus 2021-07-25 17:25:30 +02:00
parent aabd4215ad
commit dfbf6e7ce9
1 changed files with 8 additions and 4 deletions

View File

@ -290,11 +290,15 @@ Building the testsuite requires CppUnit and Qt 5.8 or higher.
1. Get the sources. For the latest version from Git clone the following repositories:
```
cd $SOURCES
git clone https://github.com/Martchus/cpp-utilities.git c++utilities
git clone https://github.com/Martchus/qtutilities.git
git clone https://github.com/Martchus/syncthingtray.git
git clone https://github.com/Martchus/subdirs.git
git clone -c core.symlinks=true https://github.com/Martchus/cpp-utilities.git c++utilities
git clone -c core.symlinks=true https://github.com/Martchus/qtutilities.git
git clone -c core.symlinks=true https://github.com/Martchus/syncthingtray.git
git clone -c core.symlinks=true https://github.com/Martchus/subdirs.git
```
Note that `-c core.symlinks=true` is only required under Windows to handle symlinks correctly.
This requires a recent Git version and a filesystem which supports symlinks (NTFS works).
If you run into "not found" errors on symlink creation use `git reset --hard` within the repository to
fix this.
2. Configure the build
```
cd $BUILD_DIR