From 62bb8fabdfbdb8c2a9076cae778a8cb73d96e2da Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 23:42:08 -0600 Subject: [PATCH] Simplified README.md and added ninja build info --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d485d10..228ab32 100644 --- a/README.md +++ b/README.md @@ -177,17 +177,20 @@ And then build the binaries (check the "build" directory): ```bash # Start by cloning the repo, then... -git clone https://github.com/davidallendj/gdpm +git clone https://github.com/davidallendj/gdpm && cd gdpm cd gdpm -export project_root=${pwd} + +# ... if using CMake with Ninja instead (preferred and tested)... +cmake -B build -S . -D CMAKE_EXPORT_COMPILE_COMMANDS=1 -D CMAKE_BUILD_TYPE=Release -G Ninja +ninja -C build -j$(nproc) # ...if using Meson with Clang on Linux... meson build meson configure build # only needed if reconfiguring build meson compile -C build -j$(nproc) -CXX=clang++ meson compile -C build -j$(npoc) +CXX=clang++ meson compile -C build -j$(nproc) -# ...if using CMake on Linux (needs work!)... +# ...if using CMake with Make on Linux (needs work!)... cd build cmake .. make -j$(nproc)