summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-09-27 19:01:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-09-27 19:01:19 (GMT)
commit74c1345333b456eb34480c987bc186ef2af3c536 (patch)
tree0c0751e4bfef94831377d7f5e20202b27cd06de9 /Source/cmMakefile.cxx
parent1e3ba0f1d72873233193ce69614fd4bd880e8fc5 (diff)
downloadCMake-74c1345333b456eb34480c987bc186ef2af3c536.zip
CMake-74c1345333b456eb34480c987bc186ef2af3c536.tar.gz
CMake-74c1345333b456eb34480c987bc186ef2af3c536.tar.bz2
ENH: change ME to LIBRARY and added PROJECT, also remove ITK stuff and replaced with CMake
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx27
1 files changed, 10 insertions, 17 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1b6538c..49ee42f 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -109,24 +109,17 @@ bool cmMakefile::ReadMakefile(const char* filename)
}
}
}
- else if(line.find("ME") != std::string::npos)
+ else if(line.find("LIBRARY") != std::string::npos)
{
- size_t mestart = line.find("ME");
- size_t start = line.find("=");
- if(start != std::string::npos && start > mestart )
- {
- start++;
- while(line[start] == ' ' && start < line.size())
- {
- start++;
- }
- size_t end = line.size()-1;
- while(line[end] == ' ' && end > start)
- {
- end--;
- }
- this->SetLibraryName(line.substr(start, end).c_str());
- }
+ std::string libname = cmSystemTools::ExtractVariable("LIBRARY",
+ line.c_str());
+ this->SetLibraryName(libname.c_str());
+ }
+ else if(line.find("PROJECT") != std::string::npos)
+ {
+ std::string libname = cmSystemTools::ExtractVariable("PROJECT",
+ line.c_str());
+ this->SetProjectName(libname.c_str());
}
}
return true;