From 284a679a85d5bfd20cc32a1eb0f86cee9646c939 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Mon, 15 Sep 2025 14:39:55 +0200 Subject: [PATCH] feat(cmakev2): Allow users to set the dependencies lock file --- tools/cmakev2/manager.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cmakev2/manager.cmake b/tools/cmakev2/manager.cmake index 119f365f19a..434d23ecaf7 100644 --- a/tools/cmakev2/manager.cmake +++ b/tools/cmakev2/manager.cmake @@ -29,12 +29,13 @@ function(__init_component_manager) OUTPUT cmgr_iface) idf_build_set_property(IDF_COMPONENT_MANAGER_INTERFACE_VERSION ${cmgr_iface}) - # Set DEPENDENCIES_LOCK from env/-D if provided. Otherwise, use the + # Set DEPENDENCIES_LOCK if set by the user. Otherwise, use the # project directory and IDF_TARGET to determine the lock file path. # Note: This deviates from the build system v1 behavior where we allow # users to specify the lock file path via idf_build_set_property. + idf_build_get_property(deps_lock_file DEPENDENCIES_LOCK) __get_default_value(VARIABLE DEPENDENCIES_LOCK - DEFAULT "" + DEFAULT "${deps_lock_file}" OUTPUT deps_lock_file) idf_build_set_property(DEPENDENCIES_LOCK "${deps_lock_file}") endfunction()