From a500965fcb31b64a5d4b64423eb2e9e3ed984df1 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Mon, 17 Nov 2025 15:05:08 +0100 Subject: [PATCH] fix(cmakev2/build): display a warning when the MINIMAL_BUILD property is set The MINIMAL_BUILD property is not relevant in cmakev2, as only components explicitly linked through targets are included in the build by design. Display a warning when this outdated build property is set. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/build.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/cmakev2/build.cmake b/tools/cmakev2/build.cmake index 11774aad7df..fe0088ab12e 100644 --- a/tools/cmakev2/build.cmake +++ b/tools/cmakev2/build.cmake @@ -37,6 +37,10 @@ function(idf_build_set_property property value) set(multi_value) cmake_parse_arguments(ARG "${options}" "${one_value}" "${multi_value}" ${ARGN}) + if("${property}" STREQUAL MINIMAL_BUILD) + idf_warn("Build property 'MINIMAL_BUILD' is obsolete and will be ignored") + endif() + set(append) if(ARG_APPEND) set(append APPEND)