From 10da73908f2c5c29f8783111faa1925a3583c410 Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Sat, 30 Nov 2024 14:36:55 +0100 Subject: [PATCH] [CMake] Add support for CMake 3.31 + CMP0177 --- CMakeLists.txt | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9d9efa5..c0919e85 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12) -cmake_policy(SET CMP0048 NEW) -if(POLICY CMP0075) - cmake_policy(SET CMP0075 NEW) +# https://cmake.org/cmake/help/latest/policy/CMP0177.html +if(POLICY CMP0177) + cmake_policy(SET CMP0177 NEW) endif() project(cpu-x VERSION "5.1.0" diff --git a/README.md b/README.md index c35e8b53..bc231934 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ It can be used in graphical mode by using GTK or in text-based mode by using NCu These dependencies are needed to **build** CPU-X: * A C++ compiler ([GCC](https://gcc.gnu.org/) or [Clang](https://clang.llvm.org/)) -* [CMake](https://www.cmake.org/) +* [CMake](https://www.cmake.org/) (version 3.12 or newer is needed) * [Pkg-Config](https://www.freedesktop.org/wiki/Software/pkg-config/) / [Pkgconf](https://github.com/pkgconf/pkgconf) * [NASM](https://www.nasm.us/) (for x86 CPUs only)