From 2f87b72173c5ba419f56076411888d07e931b81d Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 16 Sep 2024 08:36:28 -0700 Subject: Upgrade minimum cmake version. --- CMakeLists.txt | 2 +- cassert/CMakeLists.txt | 2 +- cstring/CMakeLists.txt | 2 +- error/CMakeLists.txt | 2 +- filesystem/CMakeLists.txt | 2 +- list/CMakeLists.txt | 2 +- log/CMakeLists.txt | 2 +- mem/CMakeLists.txt | 2 +- mempool/CMakeLists.txt | 6 +++++- plugin/CMakeLists.txt | 2 +- random/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- timer/CMakeLists.txt | 4 ++-- 13 files changed, 18 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dae71bf..04e0e4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(clib) diff --git a/cassert/CMakeLists.txt b/cassert/CMakeLists.txt index 855f261..13e5560 100644 --- a/cassert/CMakeLists.txt +++ b/cassert/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(cassert) diff --git a/cstring/CMakeLists.txt b/cstring/CMakeLists.txt index bc385c3..1d1dfe4 100644 --- a/cstring/CMakeLists.txt +++ b/cstring/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(cstring) diff --git a/error/CMakeLists.txt b/error/CMakeLists.txt index e47a1f9..7d7d03b 100644 --- a/error/CMakeLists.txt +++ b/error/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(error) diff --git a/filesystem/CMakeLists.txt b/filesystem/CMakeLists.txt index 04390f4..07cfdc4 100644 --- a/filesystem/CMakeLists.txt +++ b/filesystem/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(filesystem) diff --git a/list/CMakeLists.txt b/list/CMakeLists.txt index 6e76ec6..5e335cc 100644 --- a/list/CMakeLists.txt +++ b/list/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(list) diff --git a/log/CMakeLists.txt b/log/CMakeLists.txt index eed76f4..cc103c5 100644 --- a/log/CMakeLists.txt +++ b/log/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) add_library(log src/log.c) diff --git a/mem/CMakeLists.txt b/mem/CMakeLists.txt index e4b28c3..007a95b 100644 --- a/mem/CMakeLists.txt +++ b/mem/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(mem) diff --git a/mempool/CMakeLists.txt b/mempool/CMakeLists.txt index 8c9dd30..31ff0e1 100644 --- a/mempool/CMakeLists.txt +++ b/mempool/CMakeLists.txt @@ -1,7 +1,11 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(mempool) +set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD_REQUIRED On) +set(CMAKE_C_EXTENSIONS Off) + # Library add_library(mempool diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt index 0cfadc1..58b956e 100644 --- a/plugin/CMakeLists.txt +++ b/plugin/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(plugin) diff --git a/random/CMakeLists.txt b/random/CMakeLists.txt index 188d16b..ad1b684 100644 --- a/random/CMakeLists.txt +++ b/random/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(random) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 102568c..c67f680 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(test) diff --git a/timer/CMakeLists.txt b/timer/CMakeLists.txt index 6d8846a..717f70b 100644 --- a/timer/CMakeLists.txt +++ b/timer/CMakeLists.txt @@ -1,11 +1,11 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(timer) # Library set(SRC - src/timer.c) + src/timer.c) add_library(timer ${SRC}) -- cgit v1.2.3