Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#529 closed defect (fixed)

warning: source file '$(top_srcdir)/bin/Parameter.cc' is in a subdirectory

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: minor Milestone: svndigest 0.10.3
Component: build Version: 0.10.2
Keywords: Cc:

Description

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)

comment:1 Changed 8 years ago by Peter Johansson

Status: newassigned

comment:2 Changed 8 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(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.

comment:3 Changed 8 years ago by Peter Johansson

Milestone: svndigest 0.x+svndigest 0.10.3
Note: See TracTickets for help on using tickets.