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
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to