summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-22 14:57:44 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-22 14:57:44 (GMT)
commit70e98c73e9d520a8c4e4ec6691be163af995b55b (patch)
tree1200229e68908d57311e2fcca3f98d5495f4fb78 /Source
parent457b95322d69b868735e2785176e660c1cebfeb9 (diff)
downloadCMake-70e98c73e9d520a8c4e4ec6691be163af995b55b.zip
CMake-70e98c73e9d520a8c4e4ec6691be163af995b55b.tar.gz
CMake-70e98c73e9d520a8c4e4ec6691be163af995b55b.tar.bz2
Add Xcode file association for Fortran
Intel Fortran on Mac OS X enables Fortran support in Xcode. This commit teaches CMake to associate Fortran sources properly in Xcode projects. See issue #9739.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 19d75d4..e46521b 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -655,6 +655,10 @@ cmGlobalXCodeGenerator::CreateXCodeFileReference(cmSourceFile* sf,
{
sourcecode += ".c.c";
}
+ else if(lang && strcmp(lang, "Fortran") == 0)
+ {
+ sourcecode += ".fortran.f90";
+ }
else if(ext == "png" || ext == "gif" || ext == "jpg")
{
sourcecode = "image";