File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ function(convert_arduino_libraries_to_components)
83
83
endforeach ()
84
84
endif ()
85
85
86
- message ( STATUS "Created IDF component for ${child} " )
86
+ # We do not have 'src' folder. Import a flat structure (1.0 style )
87
87
else ()
88
88
message (STATUS "Processing 1.0 compatible library '${child} ' in '${libs_dir_abs} '" )
89
89
file (WRITE ${component_cmakelist} "idf_component_register(SRCS " )
@@ -111,12 +111,17 @@ function(convert_arduino_libraries_to_components)
111
111
if (IS_DIRECTORY "${utility_dir} " )
112
112
file (APPEND ${component_cmakelist} "\" utility\" " )
113
113
endif ()
114
-
114
+
115
115
# Require arduino and main components to suceed in compilation
116
116
file (APPEND ${component_cmakelist} "PRIV_REQUIRES ${arduino_component_name} ${main_component_name} )\n " )
117
-
118
- message (STATUS "Created IDF component for ${child} " )
119
117
endif ()
118
+
119
+ message (STATUS "Created IDF component for ${child} " )
120
+
121
+ # Include the component's CMakeLists.txt to execute it
122
+ # add_subdirectory("${child_dir}") # Using this method produces the following error: 'Called idf_component_register from a non-component directory.'
123
+ # list(APPEND EXTRA_COMPONENT_DIRS ${child_dir}) # Using this method does not help
124
+
120
125
else ()
121
126
message (STATUS "Skipped ${child} : Required 'library.properties' not found" )
122
127
endif ()
You can’t perform that action at this time.
0 commit comments