From 728b7c1f78a01e7b2d5224e19a8d3ca6039ff15e Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 21 Aug 2025 09:21:17 +0200 Subject: [PATCH] fix(cmakev2/utilities): avoid overwriting compile_options in __get_compile_options Currently, the generic compile_options are ignored because they are unset after retrieving the build property. To fix this, avoid explicitly setting compile_options, as this variable is initialized with the idf_build_get_property(compile_options ...) call. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/utilities.cmake | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/cmakev2/utilities.cmake b/tools/cmakev2/utilities.cmake index 7a469fe1db2..1a1c6488ad0 100644 --- a/tools/cmakev2/utilities.cmake +++ b/tools/cmakev2/utilities.cmake @@ -469,7 +469,6 @@ function(__get_compile_options) idf_build_get_property(cxx_compile_options CXX_COMPILE_OPTIONS GENERATOR_EXPRESSION) idf_build_get_property(asm_compile_options ASM_COMPILE_OPTIONS GENERATOR_EXPRESSION) - set(compile_options) foreach(option IN LISTS c_compile_options) list(APPEND compile_options $<$:${option}>) endforeach()