summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2019-10-24 06:33:25 +0200
committer Matteo Bernardini2019-12-07 19:21:12 +0100
commitddb7cccbf8d234b80c5456c9eb94f5ed8d40704f (patch)
treeac8a025f811be25685895a4b05f1ea91ddf3b521
parent4b7b01aae75cc2cc8db1eedc90b43f8400bef53e (diff)
downloadslackbuilds-gnucash.tar.gz
office/gnucash: Fix for the newer cmake, disabled -Werror.gnucash
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--office/gnucash/gnucash.SlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/office/gnucash/gnucash.SlackBuild b/office/gnucash/gnucash.SlackBuild
index 6b47c27cd7..a93d537f8c 100644
--- a/office/gnucash/gnucash.SlackBuild
+++ b/office/gnucash/gnucash.SlackBuild
@@ -116,11 +116,13 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i '1iinclude(CheckSymbolExists)' gnucash/register/register-gnome/CMakeLists.txt
+
mkdir -p build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -Wno-error" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
-DSYSCONFDIR=/etc \