warning: source file '$(top_srcdir)/bin/Parameter.cc' is in a subdirectory
Automake 1.15 gives this annoying warning:
test/Makefile.am:36: warning: source file '$(top_srcdir)/bin/Parameter.cc' is in a subdirectory,
test/Makefile.am:36: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
test/Makefile.am:36: warning: source file '$(top_srcdir)/bin/AbstractParameter.cc' is in a subdirectory,
test/Makefile.am:36: but option 'subdir-objects' is disabled
test/Makefile.am:36: warning: source file '$(top_srcdir)/bin/svndigestParameter.cc' is in a subdirectory,
test/Makefile.am:36: but option 'subdir-objects' is disabled
The warning is not present in trunk. We should get rid of the warning. Either turn it off or come up with some workaround such as copying the relevant source files to test directory.
Change History (3)
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Milestone: |
svndigest 0.x+ →
svndigest 0.10.3
|
(In [1581]) fixes #529
Provide object files for linking rather than corresponding source files as SOURCES for option.test. It removes the warning from automake 1.15 and it avoids some extra compilations as we recycle the object files instead.