summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-20 18:52:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-20 18:52:29 (GMT)
commitd5cb0f48b73aa52d5bff98bd315a5b9b212f5793 (patch)
tree4d7c98cdb9cf5b5099dfafacc60db316f7890ad9 /Source/cmGlobalXCodeGenerator.cxx
parent06027d1d2b8e7a137903400ac0e7153556d31d78 (diff)
downloadCMake-d5cb0f48b73aa52d5bff98bd315a5b9b212f5793.zip
CMake-d5cb0f48b73aa52d5bff98bd315a5b9b212f5793.tar.gz
CMake-d5cb0f48b73aa52d5bff98bd315a5b9b212f5793.tar.bz2
ENH: fix source extensions fror txt on xcode
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index f86ee7a..a9f0045 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -515,11 +515,16 @@ cmGlobalXCodeGenerator::CreateXCodeSourceFile(cmLocalGenerator* lg,
{
sourcecode += ".c.c";
}
- else
+ else if(strcmp(lang, "CXX") == 0)
{
sourcecode += ".cpp.cpp";
}
-
+ else
+ {
+ sourcecode += ext;
+ sourcecode += ".";
+ sourcecode += ext;
+ }
fileRef->AddAttribute("lastKnownFileType",
this->CreateString(sourcecode.c_str()));
std::string path =