Преглед на файлове

BUG: On Windows network paths do not really work as regular paths, so when the binary directory is on the network, we will not support relative paths

Andy Cedilnik преди 22 години
родител
ревизия
b5035770bc
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      Source/cmLocalGenerator.cxx

+ 6 - 0
Source/cmLocalGenerator.cxx

@@ -65,6 +65,12 @@ void cmLocalGenerator::ConfigureFinalPass()
 
 std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
 {
+  const char* outputDirectory = m_Makefile->GetHomeOutputDirectory();
+  if ( outputDirectory && *outputDirectory && *(outputDirectory+1) && 
+    outputDirectory[0] == '/' && outputDirectory[1] == '/' )
+    {
+    return cmSystemTools::ConvertToOutputPath(p);
+    }
   // The first time this is called, initialize all
   // the path ivars that are used.   This can not 
   // be moved to the constructor because all the paths are not set yet.