diff options
author | Brad King <brad.king@kitware.com> | 2009-10-22 14:57:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-22 14:57:44 (GMT) |
commit | 70e98c73e9d520a8c4e4ec6691be163af995b55b (patch) | |
tree | 1200229e68908d57311e2fcca3f98d5495f4fb78 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 457b95322d69b868735e2785176e660c1cebfeb9 (diff) | |
download | CMake-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/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 4 |
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"; |