diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-06 18:51:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-06 18:51:41 (GMT) |
commit | 9655299f08b5aa04ea63193ebecfa08efae7ca3d (patch) | |
tree | 69f0415d9b8414cee074b25d80c4520a6feb6086 /Source/cmTarget.cxx | |
parent | 0220a85e3337f87c3b34c2d49d85b6ace127ea50 (diff) | |
download | CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.zip CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.tar.gz CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.tar.bz2 |
ENH: initial fortran support
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f914094..7c3fb7a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -437,6 +437,24 @@ bool cmTarget::HasCxx() const return false; } +bool cmTarget::HasFortran() const +{ + if(this->GetProperty("HAS_FORTRAN")) + { + return true; + } + for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin(); + i != m_SourceFiles.end(); ++i) + { + if(cmSystemTools::GetFileFormat((*i)->GetSourceExtension().c_str()) + == cmSystemTools::FORTRAN_FILE_FORMAT) + { + return true; + } + } + return false; +} + |