From: Christoph GrĂ¼ninger Date: Tue, 31 Oct 2023 22:30:43 +0000 (+0100) Subject: [cmake] Require CMake version 3.5 or newer X-Git-Tag: v1.5.6^2~105^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4502ca5f422a4e3f0b8980d5a365fcc3f62e97e0;p=thirdparty%2Fzstd.git [cmake] Require CMake version 3.5 or newer More recent versions of CMake emit the following warning: CMake Deprecation Warning at cmake/CMakeLists.txt:10 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. --- diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index 0bffc87d9..7377d4550 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -7,7 +7,7 @@ # in the COPYING file in the root directory of this source tree). # ################################################################ -cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) +cmake_minimum_required(VERSION 3.5 FATAL_ERROR) # As of 2018-12-26 ZSTD has been validated to build with cmake version 3.13.2 new policies. # Set and use the newest cmake policies that are validated to work