mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
doc: clarify that ninja is optional and add other potential useful flags for CMake build (#1768)
--------- Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
This commit is contained in:
parent
ac03f31384
commit
c51c0fd714
|
@ -41,10 +41,15 @@ Basically, you need those commands:
|
||||||
```shell
|
```shell
|
||||||
cd goldendict-ng && mkdir build_dir
|
cd goldendict-ng && mkdir build_dir
|
||||||
# config step
|
# 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
|
# actual build
|
||||||
cmake --build build_dir
|
cmake --build build_dir
|
||||||
|
--parallel 7 (Optional if Ninja was chosen)
|
||||||
|
|
||||||
cmake --install ./build_dir/
|
cmake --install ./build_dir/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue