cmake: Require version 3.21

CMake 3.21 does not remove a normal variable if a cache variable of the
same name is set. This is the CMake policy CMP0126.
This commit is contained in:
Lukas Woodtli 2024-09-02 09:43:13 +02:00 committed by Lukas Woodtli
parent 0c811ae3ed
commit 96ac07b24a
8 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.21)
project(wakaama C)

View File

@ -106,7 +106,7 @@ If `NONE` is chosen, the user of Wakaama needs to implement a custom transport l
- Mandatory:
- Compiler: GCC and/or Clang
- Optional (but strongly recommended):
- Build system generator: CMake 3.13+
- Build system generator: CMake 3.21+
- Version control system: Git (and a GitHub account)
- Git commit message linter: gitlint
- Build system: ninja

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
# Our examples are designed for POSIX systems
add_compile_definitions(_POSIX_C_SOURCE=200809)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
project(bootstrap_server C)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
project(lwm2mclient C)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
project(lightclient C)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
project(lwm2mserver C)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.21)
project(lwm2munittests C)