summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean James <seanjames777@gmail.com>2015-04-01 19:02:42 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-01 19:15:22 (GMT)
commit078c732185ff610c55707ae66be0a787c78bd2e2 (patch)
treeac9ae717e928c676df55f27acfe2af89807a9b04
parent0de7807c36ebfbaadf0e9b45bdf9fd79360c8eaf (diff)
downloadCMake-078c732185ff610c55707ae66be0a787c78bd2e2.zip
CMake-078c732185ff610c55707ae66be0a787c78bd2e2.tar.gz
CMake-078c732185ff610c55707ae66be0a787c78bd2e2.tar.bz2
Xcode: Add file type for Metal shader files
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index f139ad1..5e584a4 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -865,6 +865,10 @@ GetSourcecodeValueFromFileExtension(const std::string& _ext,
{
sourcecode += ".asm";
}
+ else if (ext == "metal")
+ {
+ sourcecode += ".metal";
+ }
//else
// {
// // Already specialized above or we leave sourcecode == "sourcecode"