diff options
author | 3gg <3gg@shellblade.net> | 2024-09-16 08:53:52 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-09-16 08:53:52 -0700 |
commit | ac801fb439abe3897d2a5156e3d87c8aeb589bd4 (patch) | |
tree | c73e30ca9c1343ff4e58c1b88c5ba07977f35cae | |
parent | b540364f3842fe6ea41a908c905e12e4458e4fef (diff) |
Set C standard version.
-rw-r--r-- | cstring/CMakeLists.txt | 4 | ||||
-rw-r--r-- | error/CMakeLists.txt | 4 | ||||
-rw-r--r-- | filesystem/CMakeLists.txt | 4 | ||||
-rw-r--r-- | list/CMakeLists.txt | 4 | ||||
-rw-r--r-- | mem/CMakeLists.txt | 4 | ||||
-rw-r--r-- | plugin/CMakeLists.txt | 4 | ||||
-rw-r--r-- | random/CMakeLists.txt | 4 | ||||
-rw-r--r-- | timer/CMakeLists.txt | 4 |
8 files changed, 32 insertions, 0 deletions
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) | |||
2 | 2 | ||
3 | project(cstring) | 3 | project(cstring) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | add_library(cstring | 9 | add_library(cstring |
6 | src/cstring.c) | 10 | src/cstring.c) |
7 | 11 | ||
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) | |||
2 | 2 | ||
3 | project(error) | 3 | project(error) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | add_library(error | 9 | add_library(error |
6 | src/error.c) | 10 | src/error.c) |
7 | 11 | ||
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) | |||
2 | 2 | ||
3 | project(filesystem) | 3 | project(filesystem) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | add_library(filesystem | 9 | add_library(filesystem |
6 | src/filesystem.c | 10 | src/filesystem.c |
7 | src/path.c) | 11 | 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) | |||
2 | 2 | ||
3 | project(list) | 3 | project(list) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | # Library | 9 | # Library |
6 | 10 | ||
7 | add_library(list INTERFACE) | 11 | 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) | |||
2 | 2 | ||
3 | project(mem) | 3 | project(mem) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | # Library | 9 | # Library |
6 | 10 | ||
7 | add_library(mem | 11 | 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) | |||
2 | 2 | ||
3 | project(plugin) | 3 | project(plugin) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | add_library(plugin | 9 | add_library(plugin |
6 | src/plugin.c) | 10 | src/plugin.c) |
7 | 11 | ||
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) | |||
2 | 2 | ||
3 | project(random) | 3 | project(random) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | add_library(random | 9 | add_library(random |
6 | src/mt19937-64.c | 10 | src/mt19937-64.c |
7 | src/normal.c) | 11 | 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) | |||
2 | 2 | ||
3 | project(timer) | 3 | project(timer) |
4 | 4 | ||
5 | set(CMAKE_C_STANDARD 23) | ||
6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
7 | set(CMAKE_C_EXTENSIONS Off) | ||
8 | |||
5 | # Library | 9 | # Library |
6 | 10 | ||
7 | set(SRC | 11 | set(SRC |