CREATE_PROJECT: Modify producesObjectFile to take .m and .mm into account.

This should be safe outside XCode, as only OSX/iOS-projects introduce such files to begin with.
This commit is contained in:
Einar Johan Trøan Sømåen 2015-04-09 19:51:01 +02:00
parent 7de2f25466
commit e24737f142

View file

@ -1044,7 +1044,7 @@ bool producesObjectFile(const std::string &fileName) {
std::string n, ext;
splitFilename(fileName, n, ext);
if (ext == "cpp" || ext == "c" || ext == "asm")
if (ext == "cpp" || ext == "c" || ext == "asm" || ext == "m" || ext == "mm")
return true;
else
return false;