forked from hasufell/hasufell-repository
games-rpg/arx-libertatis: fix build with latest cmake
This commit is contained in:
parent
ea797a3d77
commit
c9320e3521
@ -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"
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user