diff --git a/patches/libarchive/CMakeLists.txt.patch b/patches/libarchive/CMakeLists.txt.patch new file mode 100644 index 0000000000..ea42255b63 --- /dev/null +++ b/patches/libarchive/CMakeLists.txt.patch @@ -0,0 +1,9 @@ +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -1,5 +1,5 @@ + # +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) ++CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12...3.5 FATAL_ERROR) + if(POLICY CMP0065) + cmake_policy(SET CMP0065 NEW) #3.4 don't use `-rdynamic` with executables + endif() diff --git a/patches/lshpack/CMakeLists.txt.patch b/patches/lshpack/CMakeLists.txt.patch new file mode 100644 index 0000000000..bdc8f8dcb1 --- /dev/null +++ b/patches/lshpack/CMakeLists.txt.patch @@ -0,0 +1,11 @@ +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -6,7 +6,7 @@ + # XXH_INCLUDE_DIR + # LSHPACK_XXH + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ++CMAKE_MINIMUM_REQUIRED(VERSION 2.8...3.5) + PROJECT(ls-hpack C) + + include(CheckIncludeFiles) diff --git a/patches/zlib/CMakeLists.txt.patch b/patches/zlib/CMakeLists.txt.patch new file mode 100644 index 0000000000..5b62619814 --- /dev/null +++ b/patches/zlib/CMakeLists.txt.patch @@ -0,0 +1,8 @@ +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 2.8.12...3.5) + + project(zlib C) + diff --git a/patches/zlib/ucm.cmake.patch b/patches/zlib/ucm.cmake.patch new file mode 100644 index 0000000000..325587f632 --- /dev/null +++ b/patches/zlib/ucm.cmake.patch @@ -0,0 +1,11 @@ +--- ucm.cmake ++++ ucm.cmake +@@ -10,7 +10,7 @@ + # The documentation can be found at the library's page: + # https://github.com/onqtam/ucm + +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 2.8.12...3.5) + + include(CMakeParseArguments) +