From 9881fa8b12b8a1715d2ff2fe08a7feeb9a685dfe Mon Sep 17 00:00:00 2001 From: Jan Beran Date: Thu, 19 Mar 2026 14:40:30 +0100 Subject: [PATCH] ci(cmakev2): suppress CMake warning for unused CONFIGDEP_ENABLE variable cmakev2 does not use configdep yet, so the manually specified variable CONFIGDEP_ENABLE is unused. CMake warns about it, which causes CI to fail. Until configdep is adopted by cmakev2, suppress the warning. Co-authored-by: Cursor --- tools/cmakev2/idf.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/cmakev2/idf.cmake b/tools/cmakev2/idf.cmake index 03b45abb57f..5f401f4fb16 100644 --- a/tools/cmakev2/idf.cmake +++ b/tools/cmakev2/idf.cmake @@ -17,6 +17,11 @@ set(CMAKE_MODULE_PATH # for both cmakev1 and cmakev2. include(${CMAKE_CURRENT_LIST_DIR}/../cmake/version.cmake) +# Suppress CMake warning: "Manually-specified variables were not used by the project: CONFIGDEP_ENABLE" +# (CONFIGDEP_ENABLE is passed by idf.py but only used in the cmake v1 project() flow in project.cmake) +# FIXME: When cmakev2 will start supporting configdep, this can be removed. +set(_idf_ignore_configdep_enable "${CONFIGDEP_ENABLE}") + # The gdbinit.cmake file from cmakev1 contains a single function, # __generate_gdbinit, which is used in the generation of # project_description.json.