mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(cmakev2): suppress MINIMAL_BUILD warning in v1 shim
This commit is contained in:
@@ -39,7 +39,12 @@ function(idf_build_set_property property 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)
|
if("${property}" STREQUAL MINIMAL_BUILD)
|
||||||
idf_warn("Build property 'MINIMAL_BUILD' is obsolete and will be ignored")
|
# TODO: Remove this MINIMAL_BUILD compatibility block once CMake v1 is fully deprecated.
|
||||||
|
# V1 compatibility shims may still set MINIMAL_BUILD; warn only for native CMake v2 projects.
|
||||||
|
idf_build_get_property(_v1_compat __V1_COMPAT_SHIM)
|
||||||
|
if(NOT _v1_compat)
|
||||||
|
idf_warn("Build property 'MINIMAL_BUILD' is obsolete and will be ignored")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(append)
|
set(append)
|
||||||
|
|||||||
Reference in New Issue
Block a user