Skip to content

Commit 05401b3

Browse files
RobinKastbergkartben
authored andcommitted
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 <[email protected]>
1 parent 1ef29d5 commit 05401b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hal_rpi_pico/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include(ExternalProject)
44

55
if(CONFIG_HAS_RPI_PICO)
66
zephyr_library()
7-
zephyr_library_compile_options(-std=gnu11)
7+
set_property(TARGET ${ZEPHYR_CURRENT_LIBRARY} PROPERTY C_STANDARD 11)
88

99
set(rp2_common_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/rp2_common)
1010
set(rp2xxx_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/${CONFIG_SOC_SERIES})

0 commit comments

Comments
 (0)