From c51c0fd71400bd4c2b054167583e9b49364b7148 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 11 Sep 2024 20:03:53 -0400 Subject: [PATCH] doc: clarify that ninja is optional and add other potential useful flags for CMake build (#1768) --------- Co-authored-by: shenleban tongying --- website/docs/howto/build_from_source.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/website/docs/howto/build_from_source.md b/website/docs/howto/build_from_source.md index 24df5838..7a555f0a 100644 --- a/website/docs/howto/build_from_source.md +++ b/website/docs/howto/build_from_source.md @@ -41,10 +41,15 @@ Basically, you need those commands: ```shell cd goldendict-ng && mkdir build_dir # config step -cmake -S . -B build_dir -G Ninja +cmake -S . -B build_dir + -G "Ninja"/"Unix Makefiles"/"Xcode"... (Optional) + -install-prefix=/usr/local/ (Optional) + -DCMAKE_BUILD_TYPE=Release (Optional) + # actual build cmake --build build_dir - + --parallel 7 (Optional if Ninja was chosen) + cmake --install ./build_dir/ ```