diff --git a/config/telink/app/enable-gnu-std.cmake b/config/telink/app/enable-gnu-std.cmake index a8a63cf63c95f0..b165900d31866a 100644 --- a/config/telink/app/enable-gnu-std.cmake +++ b/config/telink/app/enable-gnu-std.cmake @@ -15,5 +15,5 @@ # add_library(gnu17 INTERFACE) -target_compile_options(gnu17 INTERFACE $<$:-std=gnu++17> -Wno-register -D_DEFAULT_SOURCE) +target_compile_options(gnu17 INTERFACE $<$:-std=gnu++17> $<$:-Wno-register> -D_DEFAULT_SOURCE) target_link_libraries(app PRIVATE gnu17)