diff --git a/docs/en/api-guides/build-system.rst b/docs/en/api-guides/build-system.rst index a2469d325d97..2e317e14d952 100644 --- a/docs/en/api-guides/build-system.rst +++ b/docs/en/api-guides/build-system.rst @@ -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. diff --git a/docs/zh_CN/api-guides/build-system.rst b/docs/zh_CN/api-guides/build-system.rst index 0e21ecd165d6..3408c273064d 100644 --- a/docs/zh_CN/api-guides/build-system.rst +++ b/docs/zh_CN/api-guides/build-system.rst @@ -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`` 来构建项目。