diff options
author | Brad King <brad.king@kitware.com> | 2008-07-30 15:06:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-30 15:06:06 (GMT) |
commit | 24c9434a81862a7d901a685f5d6df206fe7e612f (patch) | |
tree | 1d3f65da0123a43c6363ce1f999ab440587ff066 /Source/cmSourceFileLocation.cxx | |
parent | d6f02cd9110267d105c03f2979e4744a6093bcfc (diff) | |
download | CMake-24c9434a81862a7d901a685f5d6df206fe7e612f.zip CMake-24c9434a81862a7d901a685f5d6df206fe7e612f.tar.gz CMake-24c9434a81862a7d901a685f5d6df206fe7e612f.tar.bz2 |
BUG: Avoid double-slash in check for source file
Diffstat (limited to 'Source/cmSourceFileLocation.cxx')
-rw-r--r-- | Source/cmSourceFileLocation.cxx | 7 |
1 files 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)) { |