Skip to content

Commit

Permalink
Downgrade required CMake to 3.16
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
horenmar committed Jan 5, 2025
1 parent 6e9c34a commit 232e893
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .conan/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)
project(PackageTest CXX)

find_package(Catch2 CONFIG REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)

# detect if Catch is being bundled,
# disable testsuite in that case
Expand Down
4 changes: 2 additions & 2 deletions docs/cmake-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ a target. This function works by running the resulting executable with

#### Usage
```cmake
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)
project(baz LANGUAGES CXX VERSION 0.0.1)
Expand Down Expand Up @@ -239,7 +239,7 @@ parsed are *silently ignored*.
#### Usage

```cmake
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)
project(baz LANGUAGES CXX VERSION 0.0.1)
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 3.20 )
cmake_minimum_required( VERSION 3.16 )

project( Catch2Examples LANGUAGES CXX )

Expand Down
2 changes: 1 addition & 1 deletion tests/ExtraTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Build extra tests.
#

cmake_minimum_required( VERSION 3.20 )
cmake_minimum_required( VERSION 3.16 )

project( Catch2ExtraTests LANGUAGES CXX )

Expand Down
2 changes: 1 addition & 1 deletion tests/TestScripts/DiscoverTests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)

project(discover-tests-test
LANGUAGES CXX
Expand Down
2 changes: 1 addition & 1 deletion tools/misc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)

project(CatchCoverageHelper)

Expand Down

0 comments on commit 232e893

Please sign in to comment.