Commit 32ca2c0
committed
Set CMake minimum required version only once
According to the docs[1], <cmake_minimum_required> should be called at
the beginning of the top-level CMakeLists.txt (even before calling the
<project> command) to set the version and the policy settings before
invoking other commands whose behavior they may affect. All other calls
(especially, setting the same version) are definitely excess. Hence, the
patch drops <cmake_minimum_required> calls from all CMakeLists.txt
except the root one.
[1]: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
Signed-off-by: Igor Munkin <imun@cpan.org>1 parent 20d8e7b commit 32ca2c0
File tree
5 files changed
+0
-8
lines changed- 3rdparty
- etc
- src
- tests
- tools
5 files changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments