From cc95d14d802bce5e56fb1d4e88ef5dae84aef1ed Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Tue, 3 Mar 2020 16:03:59 +0800 Subject: [PATCH] ulp: fix ulp external project args Closes https://github.com/espressif/esp-idf/issues/4713 --- components/ulp/project_include.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ulp/project_include.cmake b/components/ulp/project_include.cmake index 94afe208d..4647f8f7a 100644 --- a/components/ulp/project_include.cmake +++ b/components/ulp/project_include.cmake @@ -47,10 +47,9 @@ function(ulp_embed_binary app_name s_sources exp_dep_srcs) INSTALL_COMMAND "" CMAKE_ARGS -DCMAKE_GENERATOR=${CMAKE_GENERATOR} -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FLAG} - -DULP_S_SOURCES=${sources} -DULP_APP_NAME=${app_name} + -DULP_S_SOURCES=$ + -DULP_APP_NAME=${app_name} -DCOMPONENT_DIR=${COMPONENT_DIR} - # Even though this resolves to a ';' separated list, this is fine. This must be special behavior - # for generator expressions. -DCOMPONENT_INCLUDES=$ -DIDF_PATH=${idf_path} -DSDKCONFIG=${SDKCONFIG_HEADER} @@ -60,9 +59,10 @@ function(ulp_embed_binary app_name s_sources exp_dep_srcs) BUILD_BYPRODUCTS ${ulp_artifacts} ${ulp_artifacts_extras} ${ulp_ps_sources} ${CMAKE_CURRENT_BINARY_DIR}/${app_name}/${app_name} BUILD_ALWAYS 1 - LIST_SEPARATOR | ) + set_property(TARGET ${app_name} PROPERTY ULP_SOURCES "${sources}") + spaces2list(exp_dep_srcs) set_source_files_properties(${exp_dep_srcs} PROPERTIES OBJECT_DEPENDS ${ulp_artifacts})