When 2 files have the same subhierarchy and name under the src and test hierarchies, the scons infrastructure designates their target .o files in the same destination, causing a conflict for scons.
This happens due to the mechanism which chooses the target path by taking the source and replacing the first directory with build.
This could be solved by adding build/ as a prefix to the existing path (e.g. src/../some_source.cpp -> build/src/../some_source.cpp.
When 2 files have the same subhierarchy and name under the
src
andtest
hierarchies, thescons
infrastructure designates their target.o
files in the same destination, causing a conflict forscons
. This happens due to the mechanism which chooses the target path by taking the source and replacing the first directory withbuild
. This could be solved by addingbuild/
as a prefix to the existing path (e.g.src/../some_source.cpp -> build/src/../some_source.cpp
.