From 6a19d31ff0da4d8e0238826a6b5f2ca1dcf0c64a Mon Sep 17 00:00:00 2001 From: Björn Persson Date: Sat, 14 Dec 2013 15:40:23 +0100 Subject: Use VPATH to find project files. --- comfignat.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfignat.mk b/comfignat.mk index a4742c4..1ab2256 100644 --- a/comfignat.mk +++ b/comfignat.mk @@ -181,7 +181,7 @@ preprocess_file = "${GNATPREP}" ${firstword ${filter %.gp,$^}} $@ \ # conveyed to it as Gnatprep symbols. Otherwise srcdir is conveyed. build_GPR = "${GNAT_BUILDER}" -P ${firstword ${filter %.gpr,$^}} \ - -aP${srcdir} -aP${builddir} -p \ + ${addprefix -aP,${VPATH}} -p \ ${options_building} ${builder_arguments} ${GNATFLAGS} # build_GPR is a command for use in recipes. It performs a build controlled by # the first project file among the rule's prerequisites. -- cgit v1.2.3