From 14c1dffa255ffb9fad0316c1737a67d6b8890fbb Mon Sep 17 00:00:00 2001 From: Robin Kastberg Date: Mon, 12 May 2025 11:33:48 +0000 Subject: [PATCH] modules: hal_rpi_pico: set -std=gnu11 in a toolchain independent way. Set `-std=gnu11` in a more toolchain independent way. Signed-off-by: Robin Kastberg --- modules/hal_rpi_pico/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hal_rpi_pico/CMakeLists.txt b/modules/hal_rpi_pico/CMakeLists.txt index 046660a929a3..42f0bdfd3ef0 100644 --- a/modules/hal_rpi_pico/CMakeLists.txt +++ b/modules/hal_rpi_pico/CMakeLists.txt @@ -4,7 +4,7 @@ include(ExternalProject) if(CONFIG_HAS_RPI_PICO) zephyr_library() - zephyr_library_compile_options(-std=gnu11) + set_property(TARGET ${ZEPHYR_CURRENT_LIBRARY} PROPERTY C_STANDARD 11) set(rp2_common_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/rp2_common) set(rp2xxx_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/${CONFIG_SOC_SERIES})