From 9392f50e2d8e8568fc54a400fa310c7e02a76080 Mon Sep 17 00:00:00 2001
From: Stephane Gourichon <stephane.gourichon@fidergo.fr>
Date: Wed, 18 Jul 2018 13:36:56 +0200
Subject: [PATCH] Fix build out of tree

Bug 14542

glib-compile-resource needs to be told where to find its resources when
building out of tree.
---
 settings-dialogs/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/settings-dialogs/Makefile.am b/settings-dialogs/Makefile.am
index 74cb97b29..5e91c83c0 100644
--- a/settings-dialogs/Makefile.am
+++ b/settings-dialogs/Makefile.am
@@ -106,10 +106,10 @@ xfwm4-tweaks-dialog_ui.h: xfwm4-tweaks-dialog.glade
 	$(AM_V_GEN) exo-csource --static --strip-comments --strip-content --name=tweaks_dialog_ui $< >$@
 
 workspace-resource.h:
-	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/workspace.gresource.xml --target=$@ --generate-header
+	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) $(srcdir)/workspace.gresource.xml --target=$@ --generate-header
 
 workspace-resource.c:
-	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $(srcdir)/workspace.gresource.xml --target=$@ --generate-source
+	$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) $(srcdir)/workspace.gresource.xml --target=$@ --generate-source
 
 endif
 
-- 
GitLab