summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-24 20:02:25 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-24 20:02:25 (GMT)
commitb5035770bc15cf8ddaefe87ee2dc291cd29e07da (patch)
treebe8d223cf4cfae5427a37dc1c720888af7147d6d /Source/cmLocalGenerator.cxx
parentfbd0bafca7ed0010ef6bd8c10c1fb97ee5db95bd (diff)
downloadCMake-b5035770bc15cf8ddaefe87ee2dc291cd29e07da.zip
CMake-b5035770bc15cf8ddaefe87ee2dc291cd29e07da.tar.gz
CMake-b5035770bc15cf8ddaefe87ee2dc291cd29e07da.tar.bz2
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
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 1de7379..df90dea 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/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.