MantisBT - CMake
View Issue Details
0005092CMakeCMakepublic2007-05-27 02:112016-06-10 14:30
Gonzalo Garramuno 
Bill Hoffman 
urgentmajoralways
closedmoved 
 
 
0005092: CMake -G Unix Makefiles does not work with UNC paths
When using CMake to generate Unix Makefiles under a Windows cmake, the resulting Makefile will choke on any UNC paths.

How to reproduce. Set up a mixed Unix/Windows network using Samba, for example. Make sure the Windows box can access a Linux share (like a user's home disk).

On the windows box, install a Unix toolset like cygwin.

Also, activate support of UNC paths in cmd.exe, like:
http://support.microsoft.com/kb/156276 [^]

Run bash, cd yourself to an UNC path where a CMakeLists.txt file is (if it runs compiler tests, the better). Try to run cmake.

The problem should be similar to this:
-----------------------------------
C:/cygwin/bin/gcc.exe -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /Aura001/gga/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/AHY9U3~9/CMakeFiles/CMakeTmp/testCCompiler.c

gcc: /Aura001/gga/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/AHY9U3~9/CMakeFiles/CMakeTmp/testCCompiler.c: No such file or directory
-------------------------------

It seems the first slash is being eaten somewhere along the line. This might be due to the dos path like \\Aura001 being treated as quoting of a slash.
No tags attached.
Issue History
2016-06-10 14:27Kitware RobotNote Added: 0041360
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0041360)
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.