Files
toml11/CMakeLists.txt
Severin Leonhardt 5e786476dd Fix use with CMake 3.21 and older
The minimum required CMake version is 3.16 but CMP0127 was only
introduced in 3.22. This results in errors with versions 3.16 - 3.21:

```
CMake Error at CMakeLists.txt:28 (cmake_policy):

  Policy "CMP0127" is not known to this version of CMake.
```

Fixed by only setting the policy when it's actually available.
2024-08-27 09:40:48 +02:00

4.2 KiB