MantisBT - CMake
View Issue Details
0014046CMakeCMakepublic2013-03-28 05:252016-06-10 14:31
Heiko Nardmann 
Kitware Robot 
normalminoralways
closedmoved 
Windows 7 64BitWindows7
CMake 2.8.10.2 
 
0014046: no support for build directory being a symbolic link
When setting up a symbolic link (no shortcut!!!) to the build directory and running CMake I get the following error:

CMake Error: The source directory "D:/test_SqlTreeModel_BasedOnRecursiveGroupAndEntityWithEntityInstances-build" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.

I have setup a symbolic link to the real build directory to circumvent to problem with the 260 character path limit with Windows.
1) Setup a project folder (e.g. within QtCreator).
2) Choose 'Run CMake' (from menu) and specify the real build folder parallel to the project folder.
3) Create a symbolic link to this real build folder (e.g. by using 'HardLinkShellExt'; see http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html [^]).
4) Choose 'Run CMake' again and specify the symbolic link.
No tags attached.
Issue History
2013-03-28 05:25Heiko NardmannNew Issue
2013-03-28 05:34Heiko NardmannNote Added: 0032716
2013-03-28 06:34Heiko NardmannNote Added: 0032717
2013-03-28 08:15Brad KingStatusnew => backlog
2016-06-10 14:28Kitware RobotNote Added: 0042256
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032716)
Heiko Nardmann   
2013-03-28 05:34   
Using a junction instead of a symbolic link works. So this can be seen as a workaround. At the end support for Makefiles with UNC paths inside would be nice.
(0032717)
Heiko Nardmann   
2013-03-28 06:34   
Maybe 'http://homepage1.nifty.com/emk/symlink-1.06-src.zip' [^] helps when checking how to add support for this.

FILE_ATTRIBUTE_REPARSE_POINT is the flag to check for.

CMake needs a stat() wrapper.

The boost implementation on that part might be a good start point.
(0042256)
Kitware Robot   
2016-06-10 14:28   
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.