From de397e0b64b17b1e277b5c1f3833b2f9389dc03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mq=E7=99=BD?= <3326284481@qq.com> Date: Sun, 27 Oct 2024 14:20:15 +0800 Subject: [PATCH 1/3] Update build --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a2cbe421..eeea5a503 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,13 @@ Copy the include [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spd #### Compiled version (recommended - much faster compile times) ```console -$ git clone https://github.com/gabime/spdlog.git -$ cd spdlog && mkdir build && cd build -$ cmake .. && make -j +git clone https://github.com/gabime/spdlog.git +cd spdlog +mkdir build +cd build +cmake .. +cmake --build . --parallel +cmake --install . ``` see example [CMakeLists.txt](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt) on how to use. From 194ab3962b2d2c19ad64bc7470f69eac6f854348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mq=E7=99=BD?= <3326284481@qq.com> Date: Sun, 27 Oct 2024 15:18:44 +0800 Subject: [PATCH 2/3] Simplified build command length for cross-platform compatibility. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eeea5a503..eb797afcd 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,8 @@ Copy the include [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spd #### Compiled version (recommended - much faster compile times) ```console git clone https://github.com/gabime/spdlog.git -cd spdlog -mkdir build -cd build -cmake .. -cmake --build . --parallel +cd spdlog ; mkdir build ; cd build +cmake .. ; cmake --build . --parallel cmake --install . ``` see example [CMakeLists.txt](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt) on how to use. From 617669820b62fc55aa4ee8227b94ced7477e7524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mq=E7=99=BD?= <3326284481@qq.com> Date: Sun, 27 Oct 2024 23:03:36 +0800 Subject: [PATCH 3/3] Modified to replace `make -j` only with `cmake --build.` --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eb797afcd..f4619fd96 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,9 @@ Copy the include [folder](https://github.com/gabime/spdlog/tree/v1.x/include/spd #### Compiled version (recommended - much faster compile times) ```console -git clone https://github.com/gabime/spdlog.git -cd spdlog ; mkdir build ; cd build -cmake .. ; cmake --build . --parallel -cmake --install . +$ git clone https://github.com/gabime/spdlog.git +$ cd spdlog && mkdir build && cd build +$ cmake .. && cmake --build . ``` see example [CMakeLists.txt](https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt) on how to use.