Skip to content

Commit 232e893

Browse files
committed
Downgrade required CMake to 3.16
We still want to build VS 2017 through AppVeyor, and those images have CMake 3.16.2 installed. We could install newer CMake as part of the build, but since we don't use newer CMake features yet, this is simpler.
1 parent 6e9c34a commit 232e893

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.conan/test_package/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.20)
1+
cmake_minimum_required(VERSION 3.16)
22
project(PackageTest CXX)
33

44
find_package(Catch2 CONFIG REQUIRED)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.20)
1+
cmake_minimum_required(VERSION 3.16)
22

33
# detect if Catch is being bundled,
44
# disable testsuite in that case

docs/cmake-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ a target. This function works by running the resulting executable with
8585

8686
#### Usage
8787
```cmake
88-
cmake_minimum_required(VERSION 3.20)
88+
cmake_minimum_required(VERSION 3.16)
8989
9090
project(baz LANGUAGES CXX VERSION 0.0.1)
9191
@@ -239,7 +239,7 @@ parsed are *silently ignored*.
239239
#### Usage
240240

241241
```cmake
242-
cmake_minimum_required(VERSION 3.20)
242+
cmake_minimum_required(VERSION 3.16)
243243
244244
project(baz LANGUAGES CXX VERSION 0.0.1)
245245

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required( VERSION 3.20 )
1+
cmake_minimum_required( VERSION 3.16 )
22

33
project( Catch2Examples LANGUAGES CXX )
44

tests/ExtraTests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Build extra tests.
33
#
44

5-
cmake_minimum_required( VERSION 3.20 )
5+
cmake_minimum_required( VERSION 3.16 )
66

77
project( Catch2ExtraTests LANGUAGES CXX )
88

tests/TestScripts/DiscoverTests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.20)
1+
cmake_minimum_required(VERSION 3.16)
22

33
project(discover-tests-test
44
LANGUAGES CXX

tools/misc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.20)
1+
cmake_minimum_required(VERSION 3.16)
22

33
project(CatchCoverageHelper)
44

0 commit comments

Comments
 (0)