Skip to content

Commit

Permalink
docs: Add chip target to direct CMake example in build system docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dazza0 committed Jan 3, 2025
1 parent cb3ac74 commit a4bbaed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/en/api-guides/build-system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ When ``idf.py`` does something, it prints each command that it runs for easy ref

mkdir -p build
cd build
cmake .. -G Ninja # or 'Unix Makefiles'
cmake .. -DIDF_TARGET={IDF_TARGET_PATH_NAME} -G Ninja # or 'Unix Makefiles'
ninja

In the above list, the ``cmake`` command configures the project and generates build files for use with the final build tool. In this case, the final build tool is Ninja_: running ``ninja`` actually builds the project.
Expand Down
2 changes: 1 addition & 1 deletion docs/zh_CN/api-guides/build-system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ idf.py

mkdir -p build
cd build
cmake .. -G Ninja # 或者 'Unix Makefiles'
cmake .. -DIDF_TARGET={IDF_TARGET_PATH_NAME} -G Ninja # 或者 'Unix Makefiles'
ninja

在上面的命令列表中,``cmake`` 命令对项目进行配置,并生成用于最终构建工具的构建文件。在这个例子中,最终构建工具是 Ninja_: 运行 ``ninja`` 来构建项目。
Expand Down

0 comments on commit a4bbaed

Please sign in to comment.