Skip to content

Compiling on Windows (CMake vcpkg)

Ranieri Althoff edited this page Apr 29, 2023 · 3 revisions

1. Download and install the required software

To compile on Windows using the CMake solution, you will need to download and install:

You must install Visual Studio 2022 it with at least the following individual components enabled:

  • C++ core features
  • C++ CMake tools for Windows

It is recommended that you install the "Desktop development with C++" workload.

2. Set up vcpkg

Make sure to follow the install instructions for vcpkg on Get started with vcpkg. You will need to follow the "Install vcpkg" and "Using vcpkg with MSBuild / Visual Studio" sections.

3. Set up Visual Studio

Open Visual Studio and in the project launcher, click either "Clone a repository" (if you haven't cloned or downloaded the files it already) or "Open a local folder" (if you have downloaded the source code).

Note: There is no need to separately install dependencies using vcpkg. Visual Studio and CMake will take care of that automatically when you build the project.

4. Build

Make sure you have selected the "ninja-vcpkg" configuration in the dropdown (the other option being "ninja"). To build The Forgotten Server, in the top bar click "Build", then "Build All" (or press F7).

Clone this wiki locally