diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-06-13 17:53:11 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-06-13 17:53:11 (GMT) |
commit | 012603c746b4135905eb0e36f3a4cd01ea088e64 (patch) | |
tree | fd2ea21e3463ab8db76e2dceb8c982f1081e8b55 /Source/cmTarget.cxx | |
parent | 521e301116481f9f9396ee3fa13b8c1b87274d8c (diff) | |
download | CMake-012603c746b4135905eb0e36f3a4cd01ea088e64.zip CMake-012603c746b4135905eb0e36f3a4cd01ea088e64.tar.gz CMake-012603c746b4135905eb0e36f3a4cd01ea088e64.tar.bz2 |
duh
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 26e4ff3..50a2c17 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -62,26 +62,9 @@ void cmTarget::GenerateSourceFilesFromSourceLists(const cmMakefile &mf) const std::vector<cmSourceFile> &clsList = mf.GetSources().find(temps)->second; // if we ahave a limited build list, use it - if (m_LimitedBuildList.empty()) - { - m_SourceFiles.insert(m_SourceFiles.end(), - clsList.begin(), - clsList.end()); - } - else - { - std::vector<cmSourceFile>::const_iterator si = clsList.begin(); - for (; si != clsList.end(); ++si) - { - // is it on the approved list ? - if (std::find(m_LimitedBuildList.begin(), - m_LimitedBuildList.end(), - si->GetFullPath()) != m_LimitedBuildList.end()) - { - m_SourceFiles.push_back(*si); - } - } - } + m_SourceFiles.insert(m_SourceFiles.end(), + clsList.begin(), + clsList.end()); } // if one wasn't found then assume it is a single class else @@ -89,19 +72,7 @@ void cmTarget::GenerateSourceFilesFromSourceLists(const cmMakefile &mf) cmSourceFile file; file.SetIsAnAbstractClass(false); file.SetName(temps.c_str(), mf.GetCurrentDirectory()); - if (m_LimitedBuildList.empty()) - { - m_SourceFiles.push_back(file); - } - else - { - if (std::find(m_LimitedBuildList.begin(), - m_LimitedBuildList.end(), - file.GetFullPath()) != m_LimitedBuildList.end()) - { - m_SourceFiles.push_back(file); - } - } + m_SourceFiles.push_back(file); } } |