blob: d2fef7ddf61a7b40df8702b28a27b47913ca4fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Bump CMake minimum version, delete obsolete policy that's related to MacOS and
doesn't worry us
https://bugs.gentoo.org/951671
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)
# setup directory where we should look for cmake files
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
--- a/src/catch/CMakeLists.txt
+++ b/src/catch/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
project(catch_builder CXX)
include(ExternalProject)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,11 +16,6 @@
cmake_policy(SET CMP0007 NEW)
cmake_policy(SET CMP0012 NEW)
-if (${CMAKE_MAJOR_VERSION} GREATER 2)
- # old policy do not use MACOSX_RPATH
- cmake_policy(SET CMP0042 OLD)
-endif()
-
set(MAJOR_VERSION 1)
set(MINOR_VERSION 4)
set(PATCH_VERSION 0)
|