wheel/build/log/idf_py_stderr_output_5252
2024-01-24 12:00:45 +08:00

43 lines
2.2 KiB
Plaintext

Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component 'components/wifi_station components/modbus_tcp' contains
a space separator. It was automatically split into ['components/wifi_station', 'components/modbus_tcp']
Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component ' components/wifi_station components/modbus_tcp'
contains leading spaces
Note: In ESP-IDF v5.0 and later, COMPONENT_DIRS and EXTRA_COMPONENT_DIRS should be defined
as CMake lists, not as space separated strings.
Examples:
* set(EXTRA_COMPONENT_DIRS path/to/components path/to/more/components)
# Correct, EXTRA_COMPONENT_DIRS is defined as a CMake list, with two paths added
* list(APPEND EXTRA_COMPONENT_DIRS path/to/component)
list(APPEND EXTRA_COMPONENT_DIRS path/to/more/components)
# Correct, use when building EXTRA_COMPONENT_DIRS incrementally
* set(EXTRA_COMPONENT_DIRS path/to/components "another/path with space/components")
# Literal path with spaces has to be quoted
* set(EXTRA_COMPONENT_DIRS $ENV{MY_PATH}/components dir/more_components)
# Correct, even if MY_PATH contains spaces
* set(EXTRA_COMPONENT_DIRS ${ROOT}/component1 ${ROOT}/component2 ${ROOT}/component3)
# Correct, even if ROOT contains spaces
Avoid string concatenation!
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} component1")
set(EXTRA_COMPONENT_DIRS "${EXTRA_COMPONENT_DIRS} component2")
# Incorrect. String "component1 component2" may indicate a single directory
# name with a space, or two directory names separated by space.
Instead use:
list(APPEND component1)
list(APPEND component2)
Defining COMPONENT_DIRS and EXTRA_COMPONENT_DIRS as CMake lists is backwards compatible
with ESP-IDF 4.4 and below.
(If you think these variables are defined correctly in your project and this message
is not relevant, please report this as an issue.)
Diagnostic info: E:/Espressif/frameworks/esp-idf-v5.0.4/tools/split_paths_by_spaces.py was invoked in E:\Espressif\frameworks\esp-idf-v5.0.4\app\wheel with arguments: ['--var-name=EXTRA_COMPONENT_DIRS', ' components/wifi_station components/modbus_tcp']