Hello Nick, Nick Bowler <nbow...@draconx.ca> writes:
> On 10/18/18, Julien COURTAT <julien.cour...@aqsacom.com> wrote: >> Here's my bug report, I'm building my software out of the source tree, this >> is called parallel build (very nice feature). >> The way to reproduce the issue is very simple, set myprog_CXXFLAGS = -DANY >> and VPATH=@MYDIR@ and the corresponding Makefile won't find my source file. >> Replace myprog_CXXFLAGS by AM_CXXFLAGS and it works well. >> Autoconf 2.69, automake 1.13.4 > [...] >> Makefile.am : >> bin_PROGRAMS=myprog >> myprog_SOURCES = Main.cpp >> myprog_CXXFLAGS = -DANY >> AM_CPPFLAGS = -I@MYPROG_PATH@ >> VPATH=@MYPROG_PATH@ > > Don't set VPATH like this. It supersedes the definition supplied by > Automake and is almost certainly the cause of your problems. I agree with your analysis, so I am closing this bug. Thanks. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37