Skip to content

Commit 8b1629b

Browse files
committed
Update requirements
1 parent 7dbea98 commit 8b1629b

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.12)
2-
cmake_policy(VERSION 3.24)
1+
cmake_minimum_required(VERSION 3.24)
32

43
project(Traits VERSION 0.0.1 LANGUAGES CXX)
54

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This library is inspired by [Rust Traits](https://doc.rust-lang.org/book/ch10-02
1616
1717
## Quick Start
1818

19-
*traits* is a single header C++20 library. To use the library, make sure your compiler meets the [minimum requirements](#compiler-req) and just include the header file [traits.h](https://github.com/VolumeGraphics/traits/blob/main/include/traits.h) in your source code.
19+
*traits* is a single header C++20 library. To use the library, make sure you meet the [minimum requirements](#minimum-requirements) and just include the header file [traits.h](https://github.com/VolumeGraphics/traits/blob/main/include/traits.h) in your source code.
2020
Alternatively, you can first try it out in [Compiler Explorer](https://godbolt.org/z/be31xGjrK).
2121

2222
CMake projects might build, install and `find_package(traits)` this library or just fetch content it like here: https://github.com/VolumeGraphics/traits/blob/dc18223f46b47ae1d0cfd363aa6db9a98662faf0/examples/CMakeLists.txt#L7-L10
@@ -114,7 +114,11 @@ Ideas for offering this feature at the language level seem to make the most sens
114114
115115
You might also take also a look at the rust documentation to get familiar with the basic idea of [traits](https://doc.rust-lang.org/book/ch10-02-traits.html). Some explanations from there have been included in this documentation.
116116
117-
## <a name="compiler-req">Minimum Requirements for Compilers</a>
117+
## <a name="minimum-requirements">Minimum Requirements</a>
118+
119+
CMake version 3.24 or higher is required to build the library.
120+
121+
### <a name="compiler-requirements"> Compiler
118122
119123
| Family | Minimum version | Required flags |
120124
| ------ | --------------- | -------------- |

examples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.12)
2-
cmake_policy(VERSION 3.24)
1+
cmake_minimum_required(VERSION 3.24)
32

43
project(TraitsExamples VERSION 0.0.1 LANGUAGES CXX)
54

0 commit comments

Comments
 (0)