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 <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-11-20 10:22:50 +01:00
parent 177483ec55
commit a500965fcb
+4
View File
@@ -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)