see: viewtopic.php?f=12&t=17319
I now found out, that the problem with CMake is even more severe.
The wiki page of CMake contains this statement in its feauture list:
- Detection of file content changes using traditional timestamps
This creates a problem; imminent in the following example:
Code: Select all
git checkout master
[compile spring with CMake in separate build directory]
git checkout someBranch
git checkout master
# the files now have the timestamp: now (time of the above statement)
[compile spring with CMake in separate build directory]
# even though no changes occured, spring is compiled compleetly (from [0%])
The only solution i know about, is to have separate local repositories for each branch.
Next best solution is to make our builddir in SCons configurable. It seems as if SCons does file modification detection based on content (aswell). So that should work then.