diff options
Diffstat (limited to 'Source/cmSourceFile.cxx')
-rw-r--r-- | Source/cmSourceFile.cxx | 7 |
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; |