mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Add ESP_PLATFORM to build environment.
Merges https://github.com/espressif/esp-idf/pull/2601
This commit is contained in:
committed by
Angus Gratton
parent
88dc626fd7
commit
25333b59c2
@@ -33,6 +33,8 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
include("${IDF_PATH}/tools/cmake/utilities.cmake")
|
include("${IDF_PATH}/tools/cmake/utilities.cmake")
|
||||||
include("${IDF_PATH}/tools/cmake/component_utils.cmake")
|
include("${IDF_PATH}/tools/cmake/component_utils.cmake")
|
||||||
|
|
||||||
|
set(ESP_PLATFORM 1)
|
||||||
|
|
||||||
if(NOT DEPENDENCIES_FILE)
|
if(NOT DEPENDENCIES_FILE)
|
||||||
message(FATAL_ERROR "DEPENDENCIES_FILE must be set.")
|
message(FATAL_ERROR "DEPENDENCIES_FILE must be set.")
|
||||||
endif()
|
endif()
|
||||||
|
@@ -165,7 +165,7 @@ def _ensure_build_directory(args, always_run_cmake=False):
|
|||||||
if args.generator is None:
|
if args.generator is None:
|
||||||
args.generator = detect_cmake_generator()
|
args.generator = detect_cmake_generator()
|
||||||
try:
|
try:
|
||||||
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1"]
|
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1", "-DESP_PLATFORM=1"]
|
||||||
if not args.no_warnings:
|
if not args.no_warnings:
|
||||||
cmake_args += ["--warn-uninitialized"]
|
cmake_args += ["--warn-uninitialized"]
|
||||||
if args.no_ccache:
|
if args.no_ccache:
|
||||||
|
Reference in New Issue
Block a user