summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-23 13:53:51 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-23 13:53:51 (GMT)
commit01e4c82bb4411c501c798f19e3eb6f31edf75cf2 (patch)
tree48fcdc5e36dac6c6db2cd7f49c06a07a940ca8cb /Source/cmLocalGenerator.cxx
parent58814ba30e81b60aa3108432ea8df0dd3a421633 (diff)
downloadCMake-01e4c82bb4411c501c798f19e3eb6f31edf75cf2.zip
CMake-01e4c82bb4411c501c798f19e3eb6f31edf75cf2.tar.gz
CMake-01e4c82bb4411c501c798f19e3eb6f31edf75cf2.tar.bz2
STYLE: Deleted trailing whitespace.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 9630421..d6413c7 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -9,8 +9,8 @@
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
@@ -38,7 +38,7 @@ void cmLocalGenerator::Configure()
m_Makefile->GetHomeOutputDirectory());
m_Makefile->AddDefinition("PROJECT_SOURCE_DIR",
m_Makefile->GetHomeDirectory());
-
+
// find & read the list file
std::string currentStart = m_Makefile->GetStartDirectory();
currentStart += "/CMakeLists.txt";
@@ -47,20 +47,20 @@ void cmLocalGenerator::Configure()
void cmLocalGenerator::SetGlobalGenerator(cmGlobalGenerator *gg)
{
- m_GlobalGenerator = gg;
+ m_GlobalGenerator = gg;
// setup the home directories
m_Makefile->SetHomeDirectory(
gg->GetCMakeInstance()->GetHomeDirectory());
m_Makefile->SetHomeOutputDirectory(
gg->GetCMakeInstance()->GetHomeOutputDirectory());
-
+
}
void cmLocalGenerator::ConfigureFinalPass()
-{
- m_Makefile->ConfigureFinalPass();
+{
+ m_Makefile->ConfigureFinalPass();
}
std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
@@ -68,14 +68,14 @@ std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
// do not use relative paths for network build trees
// the network paths do not work
const char* outputDirectory = m_Makefile->GetHomeOutputDirectory();
- if ( outputDirectory && *outputDirectory && *(outputDirectory+1) &&
+ 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
+ // the path ivars that are used. This can not
// be moved to the constructor because all the paths are not set yet.
if(m_CurrentOutputDirectory.size() == 0)
{
@@ -104,18 +104,18 @@ std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
m_CurrentOutputDirectory += "/";
}
- // Do the work of converting to a relative path
+ // Do the work of converting to a relative path
std::string pathIn = p;
if(pathIn.find('/') == pathIn.npos)
{
return pathIn;
}
-
+
if(pathIn.size() && pathIn[0] == '\"')
{
pathIn = pathIn.substr(1, pathIn.size()-2);
}
-
+
std::string ret = pathIn;
if(m_CurrentOutputDirectory.size() <= ret.size())
{
@@ -162,7 +162,7 @@ std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
ret = m_RelativePathToBinaryDir + ret.substr(m_HomeOutputDirectory.size(), ret.npos);
}
}
-
+
std::string relpath = m_RelativePathToBinaryDir;
if(relpath.size())
{
@@ -183,7 +183,7 @@ std::string cmLocalGenerator::ConvertToRelativeOutputPath(const char* p)
{
ret = relpath;
}
- if(ret.size()
+ if(ret.size()
&& ret[0] != '\"' && ret[0] != '/' && ret[0] != '.')
{
if(ret.size() > 1 && ret[1] != ':')