Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


[win] CanonicalizePath doesn't recognize backslash as a path separator #277

taka-no-me opened this Issue · 2 comments

2 participants


I'm trying to use ninja + cmake + gcc from Android NDK to cross-compile OpenCV library on Windows. And I have the following path in the dep file generated by gcc:


after the canonicalization the path becomes


This truncation causes the header to be always dirty and results in relink of the whole project.


As far as I understand, the plan is to support only one path separator on windows (see thread "Path slash normalization on Windows" on ninja-build), and probably just . No matter which of \ and / is chosen, mixed paths like this sound like a bug in the cmake backend.

@pcc @scottGraham

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.