I see a similar behaviour when compiling from git ("$SRCDIR") using cmake and a build directory ("$BUILDDIR") not being the source directory.
The files src/autorevision.cache and src/autorevision.h are missing after running cmake, calling make will result in the given error:
Code: Select all
$ make -j9
...
[ 53%] Generating moc_qtscriptdebug.cpp
error: No repo or cache detected.
make[2]: *** [src/autorevision.h] Error 1
make[2]: *** Deleting file `src/autorevision.h'
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/warzone2100.dir/all] Error 2
make: *** [all] Error 2
I was able to work around this problem by executing
Code: Select all
cd $SRCDIR;
./build_tools/autorevision -t h -o "$BUILDDIR/src/autorevision.cache" > "$BUILDDIR/src/autorevision.h";
cd -
make -j 9
Shouldn't this be executed by cmake, actually?