View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010206CMakeCMakepublic2010-01-29 17:152011-01-12 07:17
ReporterJeremy Nicholl 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010206: UNC paths in MSYS include directories cause dependency resolution failures
DescriptionUsing a UNC path in MSYS (e.g. //someserver/somedir) in the include path causes depend.make to fail to locate header files in /someserver/somedir, truncating the first slash.
The patch in the additional information fixes the issue. Checking back through the CVS logs, it looks like the pos variable was originally initialized to 1 (see version 1.113 of the file) but was then removed in 1.114 and set to 0 in 1.115.
Additional Informationkwsys_stl::string SystemTools::ConvertToUnixOutputPath(const char* path)
{
  kwsys_stl::string ret = path;
  
  // remove // except at the beginning might be a cygwin drive
- kwsys_stl::string::size_type pos=0;
+ kwsys_stl::string::size_type pos=1;
  while((pos = ret.find("//", pos)) != kwsys_stl::string::npos)
    {
    ret.erase(pos, 1);
    }
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0023991)
David Cole (manager)
2010-12-14 17:50

Opinion on this wide-reaching kwsys code change.....?
(0023995)
Brad King (manager)
2010-12-14 18:14

Ugh, dumb mistake on my part 5 years ago. Fixed:

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

 Issue History
Date Modified Username Field Change
2010-01-29 17:15 Jeremy Nicholl New Issue
2010-12-14 17:49 David Cole Assigned To => Brad King
2010-12-14 17:49 David Cole Status new => assigned
2010-12-14 17:50 David Cole Note Added: 0023991
2010-12-14 18:14 Brad King Note Added: 0023995
2010-12-14 18:14 Brad King Status assigned => closed
2010-12-14 18:14 Brad King Resolution open => fixed
2011-01-12 07:17 David Cole Fixed in Version => CMake 2.8.4
2011-01-12 07:17 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team