1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-25 15:52:32 +01:00

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

View File

@ -18,7 +18,9 @@
project(strawberry) project(strawberry)
cmake_minimum_required(VERSION 2.8.11) 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") if(${CMAKE_VERSION} VERSION_GREATER "3.10.3")
cmake_policy(SET CMP0072 NEW) cmake_policy(SET CMP0072 NEW)
endif() endif()