mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 11:13:34 +08:00
README fix
This commit is contained in:
@@ -61,13 +61,13 @@ Contributors, please follow the [Zubax Style Guide](https://github.com/Zubax/zub
|
|||||||
An Eclipse project can be generated like that:
|
An Eclipse project can be generated like that:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake ../../uavcan -G"Eclipse CDT4 - Unix Makefiles" \
|
cmake ../../libuavcan -G"Eclipse CDT4 - Unix Makefiles" \
|
||||||
-DCMAKE_ECLIPSE_VERSION=4.3 \
|
-DCMAKE_ECLIPSE_VERSION=4.3 \
|
||||||
-DCMAKE_BUILD_TYPE=Debug \
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DCMAKE_CXX_COMPILER_ARG1=-std=c++11
|
-DCMAKE_CXX_COMPILER_ARG1=-std=c++11
|
||||||
```
|
```
|
||||||
|
|
||||||
Path `../../uavcan` in the command above points at the directory where the top-level `CMakeLists.txt` is located;
|
Path `../../libuavcan` in the command above points at the directory where the top-level `CMakeLists.txt` is located;
|
||||||
you may need to adjust this per your environment.
|
you may need to adjust this per your environment.
|
||||||
Note that the directory where Eclipse project is generated must not be a descendant of the source directory.
|
Note that the directory where Eclipse project is generated must not be a descendant of the source directory.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user