summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-24 21:25:47 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-24 21:25:47 (GMT)
commitea258e9a1a3a4fb77e41539f1914ea99ed0d7af7 (patch)
treeba3209f4724f1006d882034a03568c8612bd441f /Source/cmLocalGenerator.cxx
parentea5f13fc8288a4a872ca94feb40c6a302ed83144 (diff)
downloadCMake-ea258e9a1a3a4fb77e41539f1914ea99ed0d7af7.zip
CMake-ea258e9a1a3a4fb77e41539f1914ea99ed0d7af7.tar.gz
CMake-ea258e9a1a3a4fb77e41539f1914ea99ed0d7af7.tar.bz2
ENH: Converted some ConvertToRelativeOutputPath calls to ConvertToOptionallyRelativeOutputPath in preparation for making ConvertToRelativeOutputPath not check CMAKE_USE_RELATIVE_PATHS.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 61f20ec..0c7ea75 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -420,7 +420,7 @@ void cmLocalGenerator::AddCustomCommandToCreateObject(const char* ofname,
cmTarget& )
{
std::string objectFile = this->ConvertToRelativeOutputPath(ofname);
- std::string sourceFile = this->ConvertToRelativeOutputPath(source.GetFullPath().c_str());
+ std::string sourceFile = this->ConvertToOptionallyRelativeOutputPath(source.GetFullPath().c_str());
std::string varString = "CMAKE_";
varString += lang;
varString += "_COMPILE_OBJECT";
@@ -746,7 +746,7 @@ cmLocalGenerator::ExpandRuleVariables(std::string& s,
std::string
cmLocalGenerator::ConvertToOutputForExisting(const char* p)
{
- std::string ret = this->ConvertToRelativeOutputPath(p);
+ std::string ret = this->ConvertToOptionallyRelativeOutputPath(p);
// if there are spaces in the path, then get the short path version
// if there is one
if(ret.find(' ') != std::string::npos)
@@ -755,7 +755,7 @@ cmLocalGenerator::ConvertToOutputForExisting(const char* p)
{
if(!cmSystemTools::GetShortPath(ret.c_str(), ret))
{
- ret = this->ConvertToRelativeOutputPath(p);
+ ret = this->ConvertToOptionallyRelativeOutputPath(p);
}
}
}