summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-21 15:11:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-21 15:11:47 (GMT)
commit252f9fc1b16611dac74345b4612ef0ce3ff437ff (patch)
treeb8879b77216b4141744c58b59aa00289c4cb6280 /Source/cmSourceFile.cxx
parent7bda70b8364ff51de82bba4a8757860815a6c0a0 (diff)
downloadCMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.zip
CMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.tar.gz
CMake-252f9fc1b16611dac74345b4612ef0ce3ff437ff.tar.bz2
BUG: fix generated files with no extension bug
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r--Source/cmSourceFile.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmSourceFile.cxx b/Source/cmSourceFile.cxx
index 0fa21b8..965286d 100644
--- a/Source/cmSourceFile.cxx
+++ b/Source/cmSourceFile.cxx
@@ -160,7 +160,12 @@ void cmSourceFile::SetName(const char* name, const char* dir, const char *ext,
pathname += "/";
}
- pathname += m_SourceName + "." + ext;
+ pathname += m_SourceName;
+ if(ext && strlen(ext))
+ {
+ pathname += ".";
+ pathname += ext;
+ }
m_FullPath = pathname;
m_SourceExtension = ext;
return;