mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
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:
@@ -37,6 +37,10 @@ function(idf_build_set_property property value)
|
|||||||
set(multi_value)
|
set(multi_value)
|
||||||
cmake_parse_arguments(ARG "${options}" "${one_value}" "${multi_value}" ${ARGN})
|
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)
|
set(append)
|
||||||
if(ARG_APPEND)
|
if(ARG_APPEND)
|
||||||
set(append APPEND)
|
set(append APPEND)
|
||||||
|
|||||||
Reference in New Issue
Block a user