Adjust CMake minimal version (#4709)

* 🔧 adjust CMake versions

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔧 install OpenSSL for CMake

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔧 install OpenSSL for CMake

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔧 install OpenSSL for CMake

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔧 install OpenSSL for CMake

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔧 install OpenSSL for CMake

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 🔨 clean up

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* 📝 update documentation

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2025-04-01 14:42:08 +02:00
committed by GitHub
parent 3a5703931a
commit d41ca94fa8
12 changed files with 47 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ and use the namespaced imported target from the generated package configuration:
!!! example
```cmake title="CMakeLists.txt"
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)
project(ExampleProject LANGUAGES CXX)
find_package(nlohmann_json 3.11.3 REQUIRED)
@@ -35,7 +35,7 @@ To embed the library directly into an existing CMake project, place the entire s
!!! example
```cmake title="CMakeLists.txt"
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)
project(ExampleProject LANGUAGES CXX)
# If you only include this third party in PRIVATE source files, you do not need to install it