[CMake] Cmake 2.8.2 Bug under windows

J Decker d3ck0r at gmail.com
Fri Aug 13 15:25:26 EDT 2010


On Fri, Aug 13, 2010 at 11:50 AM, Brad King <brad.king at kitware.com> wrote:
> On 08/13/2010 02:45 PM, J Decker wrote:
>> On Fri, Aug 13, 2010 at 11:24 AM, Brad King <brad.king at kitware.com> wrote:
>>> On 8/12/2010 8:36 PM, J Decker wrote:
>>>>
>>>> cmake -G "MinGW Makefiles" /test
>>>
>>> The path "/test" is not a valid full path on windows.
>>
>> yes it is.  and the forward slash or backslash is handled perfectly by
>> all windows internals - it's only windows command prompt that had an
>> issue cause it uses '/' as an option identifier.  The system itself
>> allows // or \\ or / or \ anywhere / or \ appear.
>
> Sure.
>
>> Not specifying the drive is also valid - it means use the current drive.
>
> Yes, so the code I mentioned needs to be taught to add the drive letter.

Not really - it can be aware that it starts with a / and don't add
anything (including <whatever/build>) but whatever, I often added the
drive letter so I could check if it starts with some single letter
followed by a colon...

>
> -Brad
>


More information about the CMake mailing list