From 21393e31ca873fa4c538c9f2fcef8be8598343db Mon Sep 17 00:00:00 2001 From: Benson Wong Date: Mon, 2 Dec 2024 15:41:10 -0800 Subject: [PATCH 1/2] Add notes for a static build --- docs/build.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/build.md b/docs/build.md index 5465629e25e85..8f179859ff742 100644 --- a/docs/build.md +++ b/docs/build.md @@ -39,6 +39,11 @@ cmake --build build --config Release ``` For more details and a list of supported generators, see the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). +- For static builds add `-DBUILD_SHARED_LIBS=OFF`: + ``` + cmake -B build -DBUILD_SHARED_LIBS=OFF + cmake --build build --config Release + ``` - Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers: - Install Visual Studio 2022, e.g. via the [Community Edition](https://visualstudio.microsoft.com/de/vs/community/). In the installer, select at least the following options (this also automatically installs the required additional tools like CMake,...): From 095f721510b7aefff77707bba0ffd7f2c64a1933 Mon Sep 17 00:00:00 2001 From: Diego Devesa Date: Wed, 4 Dec 2024 01:27:07 +0100 Subject: [PATCH 2/2] Update docs/build.md --- docs/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/build.md b/docs/build.md index 8f179859ff742..74697db1f2325 100644 --- a/docs/build.md +++ b/docs/build.md @@ -39,7 +39,7 @@ cmake --build build --config Release ``` For more details and a list of supported generators, see the [CMake documentation](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html). -- For static builds add `-DBUILD_SHARED_LIBS=OFF`: +- For static builds, add `-DBUILD_SHARED_LIBS=OFF`: ``` cmake -B build -DBUILD_SHARED_LIBS=OFF cmake --build build --config Release