[CMake] Windows drive letter capitalization consistency

David Cole david.cole at kitware.com
Thu Mar 26 06:59:54 EDT 2009


Filing a bug sounds like a good idea. :-)


On Wed, Mar 25, 2009 at 6:02 PM, James Bigler <jamesbigler at gmail.com> wrote:

> OK, I'm not sure if I can provide a reproducing case, because I'm
> dealing with a large system that generates code while dynamically
> maintaining dependencies.
>
> I did, however, discover something when trying to narrow down the problem.
>
> If I put c:\path\to\source in "Where is the source code" box in the
> CMake gui, I get the problem with the inconsistent drive letters.
> Putting "C:\path\to\source" produces good behavior.
>
> The only way to get a lower case 'c' is to type it in by hand (perhaps
> from another application), because if you use the "Browse Build.."
> button it returns upper case drive letters.
>
> Should I file a bug to make the GUI force the drive letter to be uppercase?


>
> James
>
> On Wed, Mar 25, 2009 at 8:34 AM, David Cole <david.cole at kitware.com>
> wrote:
> > When I've seen this sort of behavior, I can usually trace it back to a
> > variable set in a script or passed in on the command line...
> >
> > CMake tries to preserve any case information that it is given.
> > If you can give an example that reproduces this behavior, but is not
> > attributable to a user typing "c:" or "C:" inconsistently, then I'm sure
> one
> > of us CMake devs would be willing to investigate it.
> > If you can, give a small example that reproduces the issue and submit a
> bug
> > report in the bug tracker for it.
> >
> > Thanks,
> > David
> >
> > On Tue, Mar 24, 2009 at 7:09 PM, James Bigler <jamesbigler at gmail.com>
> wrote:
> >>
> >> I have noticed that CMake can be a little inconsistent with how drive
> >> letters are managed.
> >>
> >> Sometimes I get paths with "C:\" sometimes with "c:\".  When I
> >> generate custom build time scripts using configure_file, often the
> >> files change with only this letter change?
> >>
> >> Even the CMakeCache.txt can change (showing only one change):
> >>
> >> # It was generated by CMake: C:/Program Files (x86)/Programming/CMake
> >> 2.6/bin/cmake.exe
> >> # It was generated by CMake: c:/Program Files (x86)/Programming/CMake
> >> 2.6/bin/cmake.exe
> >>
> >> I've also seen this in vsproj files as well.
> >>
> >> I'm wondering if there are any facilities in CMake for keeping these
> >> path names consistent?
> >>
> >> I'm using CMake 2.6.3 on WinXP.
> >> VS 2005 (v8)
> >>
> >> I'm using the Qt GUI to do configurations.
> >>
> >> Thanks,
> >> James
> >> _______________________________________________
> >> 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://www.cmake.org/mailman/listinfo/cmake
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090326/d134c483/attachment.htm>


More information about the CMake mailing list