| 
														
															@@ -517,7 +517,7 @@ void cmLocalGenerator::AddCustomCommandToCreateObject(const char* ofname, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   objectDir = this->Convert(objectDir,START_OUTPUT,SHELL); 
														 | 
														
														 | 
														
															   objectDir = this->Convert(objectDir,START_OUTPUT,SHELL); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string objectFile = this->Convert(ofname,START_OUTPUT,SHELL); 
														 | 
														
														 | 
														
															   std::string objectFile = this->Convert(ofname,START_OUTPUT,SHELL); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string sourceFile = 
														 | 
														
														 | 
														
															   std::string sourceFile = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    this->Convert(source.GetFullPath(),START_OUTPUT,SHELL,true); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      this->ConvertToOutputFormat(source.GetFullPath(), SHELL); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string varString = "CMAKE_"; 
														 | 
														
														 | 
														
															   std::string varString = "CMAKE_"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   varString += lang; 
														 | 
														
														 | 
														
															   varString += lang; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   varString += "_COMPILE_OBJECT"; 
														 | 
														
														 | 
														
															   varString += "_COMPILE_OBJECT"; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1177,7 +1177,7 @@ cmLocalGenerator::ConvertToOutputForExistingCommon(const std::string& remote, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     std::string tmp; 
														 | 
														
														 | 
														
															     std::string tmp; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if(cmSystemTools::GetShortPath(remote, tmp)) 
														 | 
														
														 | 
														
															     if(cmSystemTools::GetShortPath(remote, tmp)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       { 
														 | 
														
														 | 
														
															       { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      return this->Convert(tmp, NONE, format, true); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return this->ConvertToOutputFormat(tmp, format); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1191,8 +1191,10 @@ cmLocalGenerator::ConvertToOutputForExisting(const std::string& remote, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                              RelativeRoot local, 
														 | 
														
														 | 
														
															                                              RelativeRoot local, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                              OutputFormat format) 
														 | 
														
														 | 
														
															                                              OutputFormat format) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  static_cast<void>(local); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // Perform standard conversion. 
														 | 
														
														 | 
														
															   // Perform standard conversion. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  std::string result = this->Convert(remote, local, format, true); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  std::string result = this->ConvertToOutputFormat(remote, format); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // Consider short-path. 
														 | 
														
														 | 
														
															   // Consider short-path. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   return this->ConvertToOutputForExistingCommon(remote, result, format); 
														 | 
														
														 | 
														
															   return this->ConvertToOutputForExistingCommon(remote, result, format); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1311,8 +1313,7 @@ std::string cmLocalGenerator::GetIncludeFlags( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           { 
														 | 
														
														 | 
														
															           { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           includeFlags << fwSearchFlag; 
														 | 
														
														 | 
														
															           includeFlags << fwSearchFlag; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        includeFlags << this->Convert(frameworkDir, START_OUTPUT, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                      shellFormat, true) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        includeFlags << this->ConvertToOutputFormat(frameworkDir, shellFormat) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           << " "; 
														 | 
														
														 | 
														
															           << " "; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       continue; 
														 | 
														
														 | 
														
															       continue; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -2686,42 +2687,39 @@ const char* cmLocalGenerator::GetRelativeRootPath(RelativeRoot relroot) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //---------------------------------------------------------------------------- 
														 | 
														
														 | 
														
															 //---------------------------------------------------------------------------- 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 std::string cmLocalGenerator::Convert(const std::string& source, 
														 | 
														
														 | 
														
															 std::string cmLocalGenerator::Convert(const std::string& source, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                       RelativeRoot relative, 
														 | 
														
														 | 
														
															                                       RelativeRoot relative, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                      OutputFormat output, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                      bool optional) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                      OutputFormat output) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // Convert the path to a relative path. 
														 | 
														
														 | 
														
															   // Convert the path to a relative path. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   std::string result = source; 
														 | 
														
														 | 
														
															   std::string result = source; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  if (!optional) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  switch (relative) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    switch (relative) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case HOME: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        result = this->ConvertToRelativePath( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this->GetState()->GetSourceDirectoryComponents(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case START: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        result = this->ConvertToRelativePath( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this->StateSnapshot.GetCurrentSourceDirectoryComponents(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case HOME_OUTPUT: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        result = this->ConvertToRelativePath( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this->GetState()->GetBinaryDirectoryComponents(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case START_OUTPUT: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        result = this->ConvertToRelativePath( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this->StateSnapshot.GetCurrentBinaryDirectoryComponents(), result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case FULL: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        result = cmSystemTools::CollapseFullPath(result); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      case NONE: 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        break; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case HOME: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      result = this->ConvertToRelativePath( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this->GetState()->GetSourceDirectoryComponents(), result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case START: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      result = this->ConvertToRelativePath( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this->StateSnapshot.GetCurrentSourceDirectoryComponents(), result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case HOME_OUTPUT: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      result = this->ConvertToRelativePath( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this->GetState()->GetBinaryDirectoryComponents(), result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case START_OUTPUT: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      //result = cmSystemTools::CollapseFullPath(result.c_str()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      result = this->ConvertToRelativePath( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          this->StateSnapshot.GetCurrentBinaryDirectoryComponents(), result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case FULL: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      result = cmSystemTools::CollapseFullPath(result); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case NONE: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      break; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   return this->ConvertToOutputFormat(result, output); 
														 | 
														
														 | 
														
															   return this->ConvertToOutputFormat(result, output); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -2765,8 +2763,7 @@ std::string cmLocalGenerator::ConvertToOutputFormat(const std::string& source, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //---------------------------------------------------------------------------- 
														 | 
														
														 | 
														
															 //---------------------------------------------------------------------------- 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 std::string cmLocalGenerator::Convert(RelativeRoot remote, 
														 | 
														
														 | 
														
															 std::string cmLocalGenerator::Convert(RelativeRoot remote, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                       const std::string& local, 
														 | 
														
														 | 
														
															                                       const std::string& local, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                      OutputFormat output, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                                      bool optional) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                                      OutputFormat output, bool optional) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const char* remotePath = this->GetRelativeRootPath(remote); 
														 | 
														
														 | 
														
															   const char* remotePath = this->GetRelativeRootPath(remote); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |