Skip to content

Commit 7a75775

Browse files
committed
fixed cmake build command
1 parent 98ba7f7 commit 7a75775

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [How to use the project](#how-to-use-the-project)
1717
- [Network setup](#network-setup)
1818
- [MQTT usage](#mqtt-usage)
19+
- [Disclaimer](#disclaimer)
1920

2021
## Overview
2122
The system contains 2 MCUs an EFR32xG24 (aka host) and an EFR32BG22 antenna array (aka NCP).
@@ -60,9 +61,9 @@ Build system dependencies for ubuntu 22.04 lts systems:
6061

6162
### Build with CMAKE
6263
Usage (most modern IDE will natively support this):
63-
1. Go to the project directory and configure:
64+
1. Go to the project directory (e.g. ./locator_host/) and configure:
6465
```bash
65-
cmake <project_name>_cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE:STRING=<build_type>
66+
cmake <project_name>_cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE:STRING=<build_type> -DCMAKE_TOOLCHAIN_FILE:STRING=toolchain.cmake
6667
```
6768
`<project_name>` can be either `locator_host` or `locator_ncp`.
6869
`<build_type>` can be `Debug` or `Release`.

0 commit comments

Comments
 (0)