Fix build with cmake with < 3.1

This commit is contained in:
Jonas Kvinge 2018-07-11 17:23:44 +02:00
parent cbd809621a
commit eb5d72a940
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@
project(strawberry)
cmake_minimum_required(VERSION 2.8.11)
cmake_policy(SET CMP0054 NEW)
if(${CMAKE_VERSION} VERSION_GREATER "3.0")
cmake_policy(SET CMP0054 NEW)
endif()
if(${CMAKE_VERSION} VERSION_GREATER "3.10.3")
cmake_policy(SET CMP0072 NEW)
endif()