summaryrefslogtreecommitdiff
path: root/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-04-09 17:27:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-10 06:19:19 +0700
commit02e2eb8d3367f730421022d93d1821f925fd6fc1 (patch)
tree6873d4df3e3e865c25e626b8f95bb9d640365aca /games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
parentb3b69acda5fa2d379ae795be49d2c5aa190f3e6e (diff)
downloadslackbuilds-02e2eb8d3367f730421022d93d1821f925fd6fc1.tar.gz
games/arx-libertatis: Patched to fix build with cmake-3.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch')
-rw-r--r--games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch b/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
new file mode 100644
index 0000000000..98f05e38cf
--- /dev/null
+++ b/games/arx-libertatis/arx-libertatis-1.1.2-cmake3.5.patch
@@ -0,0 +1,12 @@
+diff -up ./cmake/VersionString.cmake.orig ./cmake/VersionString.cmake
+--- ./cmake/VersionString.cmake.orig 2016-03-22 19:18:55.656290322 +0200
++++ ./cmake/VersionString.cmake 2016-03-22 19:19:08.239813098 +0200
+@@ -33,7 +33,7 @@ function(version_file SRC DST VERSION_SO
+
+ foreach(arg IN LISTS VERSION_SOURCES)
+
+- if(mode STREQUAL "variable")
++ if("${mode}" STREQUAL "variable")
+ set(mode "file")
+ else()
+ get_filename_component(arg "${arg}" ABSOLUTE)