View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014046CMakeCMakepublic2013-03-28 05:252016-06-10 14:31
ReporterHeiko Nardmann 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindows 7 64BitOSWindowsOS Version7
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0014046: no support for build directory being a symbolic link
DescriptionWhen 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.
Steps To Reproduce1) 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032716)
Heiko Nardmann (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-03-28 05:25 Heiko Nardmann New Issue
2013-03-28 05:34 Heiko Nardmann Note Added: 0032716
2013-03-28 06:34 Heiko Nardmann Note Added: 0032717
2013-03-28 08:15 Brad King Status new => backlog
2016-06-10 14:28 Kitware Robot Note Added: 0042256
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team