|
Boost-Build : |
From: Christopher Currie (Christopher_at_[hidden])
Date: 2004-01-30 16:49:44
It's been a while, and I could be missing something obvious, but the
following is giving me a duplicate targets error:
# Jamfile
project build/foo ;
SOURCES = foo ;
exe foo : $(SOURCES).cpp : <define>FOO ;
exe bar : $(SOURCES).cpp : <define>BAR ;
which results in:
boost-build/build/virtual-target.jam:797: in
virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pbin/sun/debug>foo.o
previous virtual target { sun%sun.compile.c++-foo.OBJ { foo.CPP } }
another virtual target { sun%sun.compile.c++-foo.OBJ { foo.CPP } }
boost-build/build/virtual-target.jam:175: in actualize-no-scanner from
module object(file-target)@10
boost-build/build/virtual-target.jam:110: in
object(file-target)@10.actualize from module object(file-target)@10
boost-build/build/virtual-target.jam:630: in actualize-source-type from
module object(link-action)@2
boost-build/build/virtual-target.jam:649: in action.actualize-sources
from module object(link-action)@2
boost-build/tools/builtin.jam:627: in actualize-sources from module
object(link-action)@2
boost-build/build/virtual-target.jam:596: in
object(link-action)@2.actualize from module object(link-action)@2
boost-build/build/virtual-target.jam:301: in actualize-action from
module object(file-target)@11
boost-build/build/virtual-target.jam:182: in actualize-no-scanner from
module object(file-target)@11
boost-build/build/virtual-target.jam:110: in
object(file-target)@11.actualize from module object(file-target)@11
boost-build/build-system.jam:169: in load from module build-system
boost-build/kernel/modules.jam:259: in import from module modules
boost-build/kernel/bootstrap.jam:120: in boost-build from module
boost-build.jam:1: in module scope from module
We used to have "main-target-foo" directories to solve this problem, but
we got rid of them a while back. Do they need to come back for this
situation? Or am I missing a key step?
Christopher
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk