summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-09 15:33:55 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-09 15:33:55 (GMT)
commitea0a77fd810b9ac9155e5cc49161ca22ac6a7677 (patch)
tree35500af1fe09e67598b5351f230cad86039fc567 /Source/cmTarget.cxx
parentd053034aa4a2b6bda96b9cefdaceaf185f42beb7 (diff)
downloadCMake-ea0a77fd810b9ac9155e5cc49161ca22ac6a7677.zip
CMake-ea0a77fd810b9ac9155e5cc49161ca22ac6a7677.tar.gz
CMake-ea0a77fd810b9ac9155e5cc49161ca22ac6a7677.tar.bz2
ENH: removed old 1.2 compatability
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ffdb483..921a371 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -220,46 +220,6 @@ void cmTarget::GenerateSourceFilesFromSourceLists( cmMakefile &mf)
done = 1;
}
}
-
- // if it wasn't a source file listed with the makefile
- // see if it is a variable. This is for old CMake 1.2 compatability
- // where a source list would be passed into here, by making it
- // a vector we need to possibly lookup the variable to maintain
- // CMake 1.2 compatability.
- const char* versionValue
- = mf.GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
- if (!done)
- {
- if (!versionValue || atof(versionValue) <= 1.2)
- {
- const char* varValue =
- mf.GetDefinition(temps.c_str());
- // if the definition exists
- if (varValue)
- {
- std::vector<std::string> args;
- cmSystemTools::ExpandListArgument(varValue, args);
- unsigned int i;
- for (i = 0; i < args.size(); ++i)
- {
- if (mf.GetSource(args[i].c_str()))
- {
- m_SourceFiles.push_back(mf.GetSource(args[i].c_str()));
- }
- else
- {
- cmSourceFile file;
- file.SetProperty("ABSTRACT","0");
- file.SetName(args[i].c_str(), mf.GetCurrentDirectory(),
- mf.GetSourceExtensions(),
- mf.GetHeaderExtensions());
- m_SourceFiles.push_back(mf.AddSource(file));
- }
- }
- done = 1;
- }
- }
- }
// if we still are not done, try to create the SourceFile structure
if (!done)