summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-02-05 16:10:42 +0100
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-02-07 16:21:13 +0100
commitaf0acc9a75c4399d5aa330a811e0706be20b5995 (patch)
tree8eea09c29ee1e2d17cc8eb179a584d494a01a042
parent2cbfcd232758967fa84794967d71d9584ec799ec (diff)
downloadopenttd-af0acc9a75c4399d5aa330a811e0706be20b5995.tar.xz
Update: Specify CMake minimum version in COMPILING.md
Also give some hints for MSVC users.
-rw-r--r--COMPILING.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/COMPILING.md b/COMPILING.md
index 145b24475..5e642dc87 100644
--- a/COMPILING.md
+++ b/COMPILING.md
@@ -57,6 +57,9 @@ To install both the x64 (64bit) and x86 (32bit) variants (though only one is nec
```
You can open the folder (as a CMake project). CMake will be detected, and you can compile from there.
+If libraries are installed but not found, you need to set VCPKG_TARGET_TRIPLET in CMake parameters.
+For Visual Studio 2017 you also need to set CMAKE_TOOLCHAIN_FILE.
+(Typical values are shown in the MSVC project file command line example)
Alternatively, you can create a MSVC project file via CMake. For this
either download CMake from https://cmake.org/download/ or use the version
@@ -73,6 +76,7 @@ in the build folder are MSVC project files. MSVC can rebuild the project
files himself via the `ZERO_CHECK` project.
## All other platforms
+Minimum required version of CMake is 3.9.
```bash
mkdir build