Skip to content

Commit 318169e

Browse files
committed
Simplify build instructions
Use CMake's `--build` option instead of specify platform specific build tool name. That way we don't need to add any build generator name, CMake choose instead of us.
1 parent 9f25a0f commit 318169e

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,10 @@ The goal, then, is to understand how the most common allocators work, what they
2424

2525
# Build instructions
2626

27-
This project has been developed using Netbeans and Linux but it should work on Windows, macOS and Linux. It can be easily built using CMake and different generators. The following code can be used to generate the VS 2017 project files:
28-
29-
```c
30-
// VS 2017
31-
cd <project-folder>
32-
mkdir build
33-
cd build/
34-
cmake .. "Visual Studio 15 2017 Win64"
35-
```
36-
37-
Then, from VS you can edit and execute the project. Make sure that __the main project is set up as the startup project__
38-
39-
If you are using Linux, you need to change the generator (or use the default) and execute an extra operation to actually make the executable:
40-
4127
```c
42-
// Linux
43-
cd <project-folder>
44-
mkdir build
45-
cd build/
46-
cmake ..
47-
make
28+
git clone https://github.com/mtrebi/memory-allocators.git
29+
cmake -S memory-allocator -B build
30+
cmake --build build
4831
```
4932

5033
# What's wrong with Malloc?

0 commit comments

Comments
 (0)