summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-01 18:36:07 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-01 18:36:07 (GMT)
commit2a8adb53ea2ac15873a750e18198df3c14071f6e (patch)
treeb49f7e9bd85079684cdbb486bd2a71a61994b933
parent35f36d3f0f4339c7f33d94c21bda1dc88b7c5055 (diff)
downloadCMake-2a8adb53ea2ac15873a750e18198df3c14071f6e.zip
CMake-2a8adb53ea2ac15873a750e18198df3c14071f6e.tar.gz
CMake-2a8adb53ea2ac15873a750e18198df3c14071f6e.tar.bz2
BUG: Module file names are case insensitive. Always use lower case no matter the real name of the module.
-rw-r--r--Source/cmDependsFortran.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index fe1c23f..9dd5310 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -139,14 +139,15 @@ bool cmDependsFortran::WriteDependencies(std::ostream& os)
// Require only modules not provided in the same source.
if(parser.Provides.find(*i) == parser.Provides.end())
{
- os << m_TargetFile.c_str() << ": " << i->c_str() << ".mod.stamp"
+ std::string m = cmSystemTools::LowerCase(*i);
+ os << m_TargetFile.c_str() << ": " << m.c_str() << ".mod.stamp"
<< std::endl;
os << m_TargetFile.c_str() << ".requires: " << i->c_str() << ".mod.proxy"
<< std::endl;
os << i->c_str() << ".mod.proxy:" << std::endl;
std::string stampName = m_Directory;
stampName += "/";
- stampName += *i;
+ stampName += m;
stampName += ".mod.stamp";
if(!cmSystemTools::FileExists(stampName.c_str()))
{
@@ -172,8 +173,9 @@ bool cmDependsFortran::WriteDependencies(std::ostream& os)
for(std::set<cmStdString>::const_iterator i = parser.Provides.begin();
i != parser.Provides.end(); ++i)
{
+ std::string m = cmSystemTools::LowerCase(*i);
os << "\t@$(CMAKE_COMMAND) -E copy_if_different "
- << i->c_str() << ".mod " << i->c_str() << ".mod.stamp\n";
+ << m.c_str() << ".mod " << m.c_str() << ".mod.stamp\n";
}
os << "\t@touch " << m_TargetFile.c_str() << ".provides\n";
}