commit | 66b68413b0b51539d295c440a37ea18b84185c70 | [log] [tgz] |
---|---|---|
author | Saleem Abdulrasool <compnerd@compnerd.org> | Sun Aug 01 09:50:47 2021 -0700 |
committer | Saleem Abdulrasool <compnerd@compnerd.org> | Sun Aug 01 09:57:16 2021 -0700 |
tree | ca2a09cb5c2dd2b7f6ef63bb141cea177fe1f5be | |
parent | f408980b1c3284302890c776b33880aef7534716 [diff] |
build: adjust the policy check Adjust the policy check to use the recommended check using the `POLICY` operator rather than the version check.
diff --git a/CMakeLists.txt b/CMakeLists.txt index fead9e8..58f5b79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) cmake_policy(SET CMP0048 NEW) -if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.15) +if(POLICY CMP0091) cmake_policy(SET CMP0091 NEW) endif() project (Bloaty VERSION 1.1)