[nrf52] fix build error on 3.4.0 with pch ON (#20474)

This commit is contained in:
tomaszduda23
2026-10-10 07:49:35 -10:00
committed by GitHub
parent 4ba0e1bfa2
commit 9f4a7cf5cc
+1 -1
View File
@@ -835,7 +835,7 @@ _PCH_CMAKE_LINES = [
"set(esphome_kept_options)",
"set(esphome_pch_headers)",
"foreach(option IN LISTS esphome_options)",
' if(option MATCHES "imacros> (.+)$")',
' if(option MATCHES "imacros> ([^>]+)")',
' list(APPEND esphome_pch_headers "${CMAKE_MATCH_1}")',
" list(APPEND esphome_kept_options",
' "$<$<NOT:$<AND:$<COMPILE_LANGUAGE:CXX>,$<STREQUAL:$<TARGET_PROPERTY:NAME>,app>>>:${option}>")',