CMake has fairly strict backwards compatibility behavior. Saying `cmake_minimum_required(VERSION 3.10)` has two effects: - It requires CMake to be version 3.10 or higher - It configures CMake to behave exactly as it did in version 3.10 The code use to override some policies to get newer behavior if it was available. The alternative syntax in this PR says "require at least 3.10, and use the behavior (when available) up to 3.26". We can omit policy overrides by doing so. It does not seem like any other policies are important, so we can use the simpler syntax.pull/12712/head
parent
4fcf2c0a09
commit
36db0fa17e
1 changed files with 3 additions and 14 deletions
Loading…
Reference in new issue