cmake: Remove deprecated global CSTD property
Remove the global CSTD property as it has been deprecated for 2 releases. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
85b991af5a
commit
520deb32cb
1 changed files with 0 additions and 8 deletions
|
@ -1039,14 +1039,6 @@ if(CONFIG_USERSPACE)
|
||||||
set(PROCESS_GPERF ${ZEPHYR_BASE}/scripts/build/process_gperf.py)
|
set(PROCESS_GPERF ${ZEPHYR_BASE}/scripts/build/process_gperf.py)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
get_property(GLOBAL_CSTD GLOBAL PROPERTY CSTD)
|
|
||||||
if(DEFINED GLOBAL_CSTD)
|
|
||||||
message(DEPRECATION
|
|
||||||
"Global CSTD property is deprecated, see Kconfig.zephyr for C Standard options.")
|
|
||||||
set(CSTD ${GLOBAL_CSTD})
|
|
||||||
list(APPEND CMAKE_C_COMPILE_FEATURES ${compile_features_${CSTD}})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# @Intent: Obtain compiler specific flag for specifying the c standard
|
# @Intent: Obtain compiler specific flag for specifying the c standard
|
||||||
zephyr_compile_options(
|
zephyr_compile_options(
|
||||||
$<$<COMPILE_LANGUAGE:C>:$<TARGET_PROPERTY:compiler,cstd>${CSTD}>
|
$<$<COMPILE_LANGUAGE:C>:$<TARGET_PROPERTY:compiler,cstd>${CSTD}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue