diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-05-16 14:53:02 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-05-16 14:53:02 (GMT) |
commit | 1c95c08ccf6ddc33cf009fd54d0806ec007cd5fa (patch) | |
tree | 578bf3dc76f82fcd801d999e38e306b81f35a1f7 /Source/cmDependsFortran.cxx | |
parent | c2c0956c43c3cdcd1e3cb5db70560ecd5886aa98 (diff) | |
download | CMake-1c95c08ccf6ddc33cf009fd54d0806ec007cd5fa.zip CMake-1c95c08ccf6ddc33cf009fd54d0806ec007cd5fa.tar.gz CMake-1c95c08ccf6ddc33cf009fd54d0806ec007cd5fa.tar.bz2 |
ENH: some updates to the provides requires code
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r-- | Source/cmDependsFortran.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx index ca2d388..c818ec6 100644 --- a/Source/cmDependsFortran.cxx +++ b/Source/cmDependsFortran.cxx @@ -185,6 +185,15 @@ bool cmDependsFortran::WriteDependencies(std::ostream& os) os << "\t@touch " << m_TargetFile.c_str() << ".provides\n"; } + // if it provides something then connect the requires rule to the build rule + if(!parser.Provides.empty()) + { + os << m_TargetFile.c_str() << ".requires: " << m_TargetFile.c_str() + << ".requires.build" << std::endl; + // provide empty build rule for old gen for now, TODO remove later + os << m_TargetFile.c_str() << ".requires.build:" << std::endl; + } + /* // TODO: What about .mod files provided in another directory and found with a |