[cmake-developers] -GNinja on Windows

Peter Kümmel syntheticpp at gmx.net
Tue Jun 12 12:00:45 EDT 2012


On 12.06.2012 17:43, Bill Hoffman wrote:
> On 6/12/2012 11:21 AM, Peter Kümmel wrote:
>>
>> When you debug it, you will see that it is not that simple.
>> When the path is read you don't know what is done with it later on.
>>
>
> Where is it read?  Seems like at that point it does not matter where it
> is used later one.  Once you read it in, it should strip them, and store
> it internally as a string.  It would only need to be quoted again if it
> was being written out to the disk again.

Here: https://github.com/syntheticpp/ninja/blob/master/src/graph.cc#L195

And the loop also builds the list of source files for the compiler, for instance:

"c:\my build\a.cpp" "c:\my build\b.cpp" "c:\my build\c.cpp"

in this case you need the quotes.
But in case of a dependency file, which should be read from disk it must not
have quotes. You could only speculate what will happen.
All you know is that you evaluate the $out variable.

Peter



More information about the cmake-developers mailing list