Skip to content

Commit

Permalink
[CMake] Add support for CMake 3.31 + CMP0177
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Nov 30, 2024
1 parent e504582 commit 10da739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 10da739

Please sign in to comment.