From ac801fb439abe3897d2a5156e3d87c8aeb589bd4 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 16 Sep 2024 08:53:52 -0700 Subject: Set C standard version. --- cstring/CMakeLists.txt | 4 ++++ error/CMakeLists.txt | 4 ++++ filesystem/CMakeLists.txt | 4 ++++ list/CMakeLists.txt | 4 ++++ mem/CMakeLists.txt | 4 ++++ plugin/CMakeLists.txt | 4 ++++ random/CMakeLists.txt | 4 ++++ timer/CMakeLists.txt | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/cstring/CMakeLists.txt b/cstring/CMakeLists.txt index 1d1dfe4..99cc081 100644 --- a/cstring/CMakeLists.txt +++ b/cstring/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(cstring) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + add_library(cstring src/cstring.c) diff --git a/error/CMakeLists.txt b/error/CMakeLists.txt index 7d7d03b..fbbc945 100644 --- a/error/CMakeLists.txt +++ b/error/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(error) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + add_library(error src/error.c) diff --git a/filesystem/CMakeLists.txt b/filesystem/CMakeLists.txt index 07cfdc4..508f99d 100644 --- a/filesystem/CMakeLists.txt +++ b/filesystem/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(filesystem) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + add_library(filesystem src/filesystem.c src/path.c) diff --git a/list/CMakeLists.txt b/list/CMakeLists.txt index 5e335cc..7e1df38 100644 --- a/list/CMakeLists.txt +++ b/list/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(list) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + # Library add_library(list INTERFACE) diff --git a/mem/CMakeLists.txt b/mem/CMakeLists.txt index 007a95b..89bf444 100644 --- a/mem/CMakeLists.txt +++ b/mem/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(mem) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + # Library add_library(mem diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 58b956e..f2745b2 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(plugin) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + add_library(plugin src/plugin.c) diff --git a/random/CMakeLists.txt b/random/CMakeLists.txt index ad1b684..3c4b2dc 100644 --- a/random/CMakeLists.txt +++ b/random/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(random) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + add_library(random src/mt19937-64.c src/normal.c) diff --git a/timer/CMakeLists.txt b/timer/CMakeLists.txt index 717f70b..fb300a0 100644 --- a/timer/CMakeLists.txt +++ b/timer/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.5) project(timer) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + # Library set(SRC -- cgit v1.2.3