pcc/CMake — comment on commit dd03386baacbdccfd44edf490baca795f3885e55
File:  line 0
By polrop:

On Sun, Oct 2, 2011 at 8:58 PM, pcc

wrote:
> On Thu, Sep 29, 2011 at 01:23:41AM -0700, Nicolas Despres wrote:
>> To be honest, I don't really understand that.
>
> The build.ninja build statement declares all of CMake's input
> files as inputs, including the CMakeLists.txt files, so that if
> any of the input files are modified, Ninja will re-run CMake and
> reload the build.ninja file. Normally Ninja will report an error
> if any of a target's inputs are missing, and it doesn't know how
> to build them. If the user removes, say, a CMakeLists.txt file
> (for example, if removing a module or reorganising the source tree),
> we should not report an error if we rebuild (provided that the other
> CMakeLists.txt files have been updated). The phony rule causes Ninja
> to simply consider CMake's input files as dirty if they are missing
> (triggering a rebuild), rather than reporting an error.
>

Ok, thanks,

--
Nicolas Desprès