deplinenoise / tundra

Tundra is a code build system that tries to be accurate and fast for incremental builds
MIT License
438 stars 75 forks source link

Same files in relative source folder up don't work #271

Closed ricka-github closed 8 years ago

ricka-github commented 8 years ago

The following Tundra files give an error when trying to compile them (no source file is included, it's the DAG generation that fails):

...obj set to be written by more than one target

I've tested this on Windows 7 with VS2013, but suspect it will happen on all platforms. The key point triggering this error is the '..' in SourceDir, without that it works as expected.

The reason I have this is that I have my project laid out like this, wanting to keep the root folder clear of files that aren't immediately needed (note that I usually invoke 'tundra2.exe --working-dir=projects' from the top level to build only part of the projects):

|- build-output |- data |- include | |- header.hpp |- samples |- source | |- main.cpp | |- log.cpp |- projects | |- tundra.lua | |- units.lua |- tools |- build_all.py |- license.txt

tundra.txt units.txt