[cmake-developers] Ninja Issues with dependencies

Chuck Atkins chuck.atkins at kitware.com
Wed Mar 14 14:00:44 EDT 2012


I'm trying to build a fairly large project (VXL, 4000 make targets) with
cmake+Ninja and I'm experiencing some strange issues:

1.  I configure the project with 'cmake -G Ninja'.  Everything works great.
2.  Build the project with 'ninja'.  Everything builds just fine (and VERY
fast I might add, nice job Ninja guys)
3.  Rebuild with 'ninja', BREAK:
Recompacting log...
ninja: ERROR: expected depfile
'v3p/Qv/CMakeFiles/Qv.dir/Templates/vcl_vector+QvNode~-.o.d' to mention
'v3p/Qv/CMakeFiles/Qv.dir/Templates/vcl_vector+QvNode~-.o', got
'v3p/Qv/CMakeFiles/Qv.dir/Templates/vcl_vector+QvNode'

I can only re-build if I clean first with 'ninja -t clean'.  And yes, the
filenames are correct.  There are some files named
"vcl_vector+QvNode~-.cxx" (The result of some auto-code generating
scripts).  Could it be that the odd-ball characters in the filenames are
breaking some regex somewhere?  Not sureif the issue would be in ninja
itself or in the cmake-ninja integration.

Thanks

Chuck Atkins
R&D Engineer, Kitware, Inc.

-- "Mathematicians are tools for turning coffee grounds into formulas.",
Paul Erdos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120314/96be9f12/attachment.html>


More information about the cmake-developers mailing list