Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component 'components/lis3dsh components/nvs_storage

  components/twai_communication' contains a space separator. It was automatically split into ['components/lis3dsh',

  'components/nvs_storage',  'components/twai_communication']

Warning: in CMake variable EXTRA_COMPONENT_DIRS: Path component ' components/lis3dsh components/nvs_storage

  components/twai_communication' 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\esp32_shock with arguments: ['--var-name=EXTRA_COMPONENT_DIRS', ' components/lis3dsh components/nvs_storage components/twai_communication']