diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-24 20:49:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-24 20:49:12 (GMT) |
commit | 73f04d1409ec4dfcb3b8db3e104da2a894d019a2 (patch) | |
tree | e1578688252c8a50fb307d60045379a53a02d646 /Source/cmSourceFilesRequireCommand.cxx | |
parent | b5746484e4c396489b707e0f8b4d1f539e62a965 (diff) | |
download | CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.zip CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.gz CMake-73f04d1409ec4dfcb3b8db3e104da2a894d019a2.tar.bz2 |
many fixes and cleanup and features
Diffstat (limited to 'Source/cmSourceFilesRequireCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesRequireCommand.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/cmSourceFilesRequireCommand.cxx b/Source/cmSourceFilesRequireCommand.cxx index d52211e..442635c 100644 --- a/Source/cmSourceFilesRequireCommand.cxx +++ b/Source/cmSourceFilesRequireCommand.cxx @@ -18,11 +18,9 @@ // cmSourceFilesRequireCommand bool cmSourceFilesRequireCommand::Invoke(std::vector<std::string>& args) { - if(args.size() < 4 ) - { - this->SetError("called with incorrect number of arguments"); - return false; - } + this->SetError(" deprecated - use SourceFiles command inside an If block "); + return false; + std::vector<std::string>::iterator i = args.begin(); // Search to the key word SOURCES_BEGIN is found // if one of the required defines is not there, then @@ -46,10 +44,10 @@ bool cmSourceFilesRequireCommand::Invoke(std::vector<std::string>& args) ++i; for(; i != args.end(); ++i) { - cmClassFile file; - file.m_AbstractClass = false; + cmSourceFile file; + file.SetIsAnAbstractClass(false); file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory()); - m_Makefile->AddClass(file, sname); + m_Makefile->AddSource(file, sname); } return true; } |