View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011313CMakeCMakepublic2010-10-14 14:012011-01-24 10:21
ReporterK. R. Walker 
Assigned ToBrad King 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformWindows / Visual Studio 2005OSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.3 
Summary0011313: CMake cannot find files specified with extended-length paths.
DescriptionCMake 2.6.x and 2.8.0 and Visual Studio 2005 seem to work with extended-length paths. e.g.,

add_library( name //?/C:/foo/bar/file.cpp )

but CMake 2.8.2 reports:

CMake Error in C:/foo/bar/CMakeLists.txt: Cannot find source file "file.cpp".

Extended-length path support needed to support deep hierarchies.
Additional Information"To specify an extended-length path, use the "\\?\" prefix."
-- http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx [^]
TagsNo tags attached.
Attached Files

 Relationships
related to 0011023closed cmake-gui doesn't support a source directory over a mapped network drives in Windows. 

  Notes
(0022545)
K. R. Walker (reporter)
2010-10-19 19:25

It looks like kwsys/SystemTools.cxx is changing "//?/C:/foo/bar/baz.cpp" to "/?//". This could be a workaround:

kwsys_stl::string SystemTools::GetActualCaseForPath(const char* p)
{
 #ifndef _WIN32
   return p;
 #else
+ if( 0 == strncmp( p, "//?/", 4 ) ) {
+ return p;
+ }
(0025024)
Brad King (manager)
2011-01-24 10:21

This was caused by this commit:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=018c13ff [^]

A related problem was reported in issue 0011023. This was fixed by

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0f5189d1 [^]

and released in CMake 2.8.3.

 Issue History
Date Modified Username Field Change
2010-10-14 14:01 K. R. Walker New Issue
2010-10-19 19:25 K. R. Walker Note Added: 0022545
2011-01-21 19:10 David Cole Assigned To => Brad King
2011-01-21 19:10 David Cole Status new => assigned
2011-01-24 10:19 Brad King Relationship added related to 0011023
2011-01-24 10:21 Brad King Note Added: 0025024
2011-01-24 10:21 Brad King Status assigned => closed
2011-01-24 10:21 Brad King Resolution open => fixed
2011-01-24 10:21 Brad King Fixed in Version => CMake 2.8.3


Copyright © 2000 - 2018 MantisBT Team