From 24c9434a81862a7d901a685f5d6df206fe7e612f Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Jul 2008 11:06:06 -0400 Subject: BUG: Avoid double-slash in check for source file --- Source/cmSourceFileLocation.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmSourceFileLocation.cxx b/Source/cmSourceFileLocation.cxx index 274c0ed..6388977 100644 --- a/Source/cmSourceFileLocation.cxx +++ b/Source/cmSourceFileLocation.cxx @@ -113,8 +113,11 @@ void cmSourceFileLocation::UpdateExtension(const char* name) tryPath = this->Makefile->GetCurrentDirectory(); tryPath += "/"; } - tryPath += this->Directory; - tryPath += "/"; + if(!this->Directory.empty()) + { + tryPath += this->Directory; + tryPath += "/"; + } tryPath += this->Name; if(cmSystemTools::FileExists(tryPath.c_str(), true)) { -- cgit v0.12