Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
taka-no-me opened this Issue · 2 comments

2 participants

@taka-no-me

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:

3rdparty\tbb\tbb40_20111130oss\src\tbb\/../rml/include/rml_tbb.h

after the canonicalization the path becomes

rml/include/rml_tbb.h

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

@nico
Collaborator

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.