From b12bc5849432ba8ec4026e78a86fb927754fd363 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Fri, 9 Jan 2026 11:09:41 +0100 Subject: [PATCH] fix(cmake): disable MINIMAL_BUILD build property if COMPONENTS is defined The MINIMAL_BUILD build property and the COMPONENTS variable are both used to determine the initial component list for the build. Currently, if the COMPONENTS variable is set, the MINIMAL_BUILD logic is ignored during component selection, but the MINIMAL_BUILD build property remains set. This leads to an inconsistent state where menuconfig displays information indicating MINIMAL_BUILD is active, even though it was ignored in favor of the COMPONENTS variable. Fix this by setting the MINIMAL_BUILD property to OFF if the COMPONENTS variable is used. Signed-off-by: Frantisek Hrbata --- tools/cmake/project.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cmake/project.cmake b/tools/cmake/project.cmake index 72504c061cf..1194687d0b0 100644 --- a/tools/cmake/project.cmake +++ b/tools/cmake/project.cmake @@ -503,6 +503,7 @@ function(__project_init components_var test_components_var) if(DEFINED COMPONENTS) message(WARNING "The MINIMAL_BUILD property is disregarded because the COMPONENTS variable is defined.") set(minimal_build OFF) + idf_build_set_property(MINIMAL_BUILD OFF) else() set(COMPONENTS main ${TEST_COMPONENTS}) set(minimal_build ON)