MantisBT - CMake
View Issue Details
0004067CMakeCMakepublic2006-11-23 01:002016-06-10 14:30
Brandon Van Every 
Bill Hoffman 
lowfeaturealways
closedmoved 
 
 
0004067: FILE(TO_WINDOWS_PATH ...)
I would like a FILE(TO_WINDOWS_PATH ...) command. On Windows I use MSYS, Cygwin, and Windows Command Prompt shells. They all have different "native" path behavior:

command prompt - "E:\Program Files"
Cygwin shell - "/cygdrive/e/Program Files"
MSYS shell - "/e/Program Files"

Meanwhile, I typically use tools that do not necessarily understand the "native" path convention of the shell I'm using. Typically, Windows native tools do not understand Cygwin or MSYS path conventions, but they are often run in those environments. So I'd like to explicitly force a Windows native path, "E:\Program Files" .

The general problem: what's native for a SHELL is not the same as what's native for a OS. Nor do we necessarily know if a tool needs a SHELL convention, or a OS convention. The term "native" is highly ambiguous when dealing with Cygwin or MSYS.
No tags attached.
Issue History
2016-06-10 14:27Kitware RobotNote Added: 0041332
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0041332)
Kitware Robot   
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.