games-rpg/arx-libertatis: fix build with latest cmake

This commit is contained in:
Julian Ospald 2016-04-23 13:17:11 +02:00
parent ea797a3d77
commit c9320e3521
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 21 additions and 0 deletions

View File

@ -27,6 +27,10 @@ DEPENDENCIES="
arx-install-data tool ] ]]
"
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/${PNV}-fix-cmake-build.patch
)
CMAKE_SRC_CONFIGURE_PARAMS=(
-DBUILD_EDITOR=OFF
-DCMAKE_INSTALL_DATAROOTDIR="/usr/share"

View File

@ -0,0 +1,17 @@
This is a backport from
https://github.com/arx/ArxLibertatis/commit/60e43c3cbf3fb0aa10cc3092b2512ccebb60b80d
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,11 @@
endif()
else()
cmake_minimum_required(VERSION 2.8)
+ if(CMAKE_VERSION VERSION_GREATER 3.4)
+ cmake_policy(VERSION 3.4)
+ else()
+ cmake_policy(VERSION ${CMAKE_VERSION})
+ endif()
endif()