Skip to content

Commit 7394070

Browse files
committed
Simplify build steps example
- do not mix usage of make and cmake, cmake handles all that is needed - cmake handles build dir creation
1 parent 4a2136e commit 7394070

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,21 @@ For Level Zero memory provider tests:
4747
### Linux
4848

4949
Executable and binaries will be in **build/bin**
50+
`build_config` can be either `Debug` or `Release`.
5051

5152
```bash
52-
$ mkdir build
53-
$ cd build
54-
$ cmake {path_to_source_dir}
55-
$ make
53+
$ cmake -B build -DCMAKE_BUILD_TYPE={build_config}
54+
$ cmake --build build -j $(nproc)
5655
```
5756

5857
### Windows
5958

6059
Generating Visual Studio Project. EXE and binaries will be in **build/bin/{build_config}**
60+
`build_config` can be either `Debug` or `Release`.
6161

6262
```bash
63-
$ mkdir build
64-
$ cd build
65-
$ cmake {path_to_source_dir} -G "Visual Studio 15 2017 Win64"
63+
$ cmake -B build -G "Visual Studio 15 2017 Win64"
64+
$ cmake --build build --config {build_config} -j $Env:NUMBER_OF_PROCESSORS
6665
```
6766

6867
### Benchmark

0 commit comments

Comments
 (0)