Skip to content

Commit

Permalink
Raise the minimum CMake version to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dimztimz committed Sep 16, 2022
1 parent 20f1067 commit 7c4e3b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

# detect if Catch is being bundled,
# disable testsuite in that case
Expand Down Expand Up @@ -30,12 +30,6 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt")
endif()

if(CMAKE_VERSION VERSION_GREATER 3.8)
# Enable IPO for CMake versions that support it
cmake_policy(SET CMP0069 NEW)
endif()


project(Catch2
VERSION 3.1.0 # CML version placeholder, don't delete
LANGUAGES CXX
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 3.5 )
cmake_minimum_required( VERSION 3.10 )

project( Catch2Examples LANGUAGES CXX )

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

cmake_minimum_required( VERSION 3.5 )
cmake_minimum_required( VERSION 3.10 )

project( Catch2ExtraTests LANGUAGES CXX )

Expand Down

0 comments on commit 7c4e3b2

Please sign in to comment.