I have a c++ project with source files distributed over
a deep directory tree. Some source file names are
duplicated at different locations in the tree (e.g.,
src/dir1/file.cpp, src/dir2/file.cpp)
However, when an objdir is specified for the cc task,
this directory structure is collapsed. As a result,
duplicated object names would be overwritten; ant
prevents this from occurring when it parses the ant file.
Is there a way to preserve source directory structure
in the output directory, or another workaround for this
problem (other than renaming the source files)?
Logged In: YES
user_id=319872
HI
I have the same problem and MSVC solve it by renaming the
output objects in the same directory. I would prefer that
cpp task keep the object tree isomorph to the source tree.
This feature is quite important as MSVC supports it (even
in a different way)