fix(cmakev2/compat): unquote source list in idf_component_register's add_library call

The cmakev2 compat layer's idf_component_register() was passing
${sources} quoted to add_library(), collapsing the semicolon-delimited
list into a single argument. Drop the quotes so each source becomes a
separate argument, matching cmakev1's idf_component_register().
This commit is contained in:
Sudeep Mohanty
2026-05-20 13:43:02 +02:00
parent c23e87b81b
commit a25c1f5476

View File

@@ -592,7 +592,7 @@ function(idf_component_register)
endforeach()
if(sources OR ARG_EMBED_FILES OR ARG_EMBED_TXTFILES)
add_library("${COMPONENT_TARGET}" STATIC "${sources}")
add_library("${COMPONENT_TARGET}" STATIC ${sources})
foreach(include_dir IN LISTS include_dirs)
target_include_directories("${COMPONENT_TARGET}" PUBLIC "${include_dir}")