cmake: use CMAKE_C_STANDARD and CMAKE_C_EXTENSIONS

cmake already provides a standard way for callers to override the
C_STANDARD and C_EXTENSIONS properties. Support and document those.
This commit is contained in:
Edward Thomson
2024-10-19 13:18:04 +01:00
parent 6ea625cdad
commit d090433ef1
12 changed files with 4 additions and 36 deletions

View File

@@ -3,7 +3,6 @@
file(GLOB SRC_EXAMPLES *.c *.h)
add_executable(lg2 ${SRC_EXAMPLES})
set_c_standard(lg2)
# Ensure that we do not use deprecated functions internally
add_definitions(-DGIT_DEPRECATE_HARD)