[cmake] make C and C++ standards configurable

use cache variables to allow overriding them from command line
This commit is contained in:
akallabeth
2025-02-13 12:50:36 +01:00
parent b85737e0b8
commit a24ffe957c
12 changed files with 19 additions and 37 deletions

View File

@@ -0,0 +1,3 @@
set(CMAKE_C_STANDARD 11 CACHE STRING "project default")
set(CMAKE_C_STANDARD_REQUIRED ON CACHE BOOL "project default")
set(CMAKE_C_EXTENSIONS ON CACHE BOOL "project default")