[CMake] normalize paths

James Bigler jamesbigler at gmail.com
Tue Jul 7 16:48:14 EDT 2009


Is there a way to normalize or flatten a path to a file?

I have two paths that I need to compare:

C:\path\to\file and C:\path\to\other\..\file

I need a way to collapse the second paths into something that looks like the
first, so that I could use a string comparison on the filenames to see if
they point to the same thing.

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090707/5652d429/attachment.htm>


More information about the CMake mailing list