Check for policy

This commit is contained in:
Jonas Kvinge 2023-03-08 19:01:18 +01:00
parent d8682b4403
commit 8b55cf8a3a
1 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.7)
project(strawberry)
cmake_policy(SET CMP0054 NEW)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()