From 51750d055298acafc3d2f0168b85381c9f4acfad Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 28 Jan 2005 12:01:26 -0500 Subject: STYLE: Added another solution proposal for out-of-directory modules. --- Source/cmDependsFortran.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx index cb4a98a..53cfaeb 100644 --- a/Source/cmDependsFortran.cxx +++ b/Source/cmDependsFortran.cxx @@ -215,6 +215,23 @@ bool cmDependsFortran::WriteDependencies(std::ostream& os) @touch foo.mod.hack @touch foo.mod.default + Solution 4: + + When scanning dependencies and providing a module: + - Create a .mod.provided. + - Add .mod.proxy rule depending on corresponding .o.requires. + + When scanning dependencies and requiring a module: + - Search the module path for a .mod.provided or a .mod. + - If a .mod.provided is found depend on the corresponding .mod.stamp + (it is provided by CMake in another directory) + - Else, if a .mod is found depend on it directly + (it is provided in another directory by a non-CMake project) + - Else: + - Add the empty proxy rule (if it is provided locally this will hook it) + - Depend on a local .mod.stamp (it might be provided locally) + - Create the dummy local .mod.stamp (it might not be provided locally) + */ return true; -- cgit v0.12