View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009182CMakeCMakepublic2009-06-19 09:292016-06-10 14:30
ReporterGavin Beatty 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0009182: file(TO_CMAKE_PATH) alters leading // haphazardly
DescriptionTake the following test case:

macro(macro_test _in)
    file(TO_CMAKE_PATH "${_in}" _out)
    message(STATUS "${_in} => ${_out}")
endmacro(macro_test _in _out)
macro_test("//hello/")
macro_test("//hello//")

the output is:
-- //hello/ => //hello
-- //hello// => /hello

Why does the leading // disappear with the second input?

CMake should never alter the number of leading '/'s or at least should never reduce from >1 to 1 (on POSIX a leading // is left to the implementation to handle as it wishes, e.g., with CIFS)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0016741)
Gavin Beatty (reporter)
2009-06-19 09:43

The above occurs with CMake-2.6.4 on SuSE Linux (SLES 10.1) compiled from source.
(0041571)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-06-19 09:29 Gavin Beatty New Issue
2009-06-19 09:43 Gavin Beatty Note Added: 0016741
2009-09-14 13:17 Bill Hoffman Status new => assigned
2009-09-14 13:17 Bill Hoffman Assigned To => Bill Hoffman
2016-06-10 14:27 Kitware Robot Note Added: 0041571
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team