diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-11 18:59:02 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-11 18:59:02 (GMT) |
commit | 865ec96644ae08e66b9a4a15bd7cddde46d2e2b0 (patch) | |
tree | 3f1a58bd35606684aa8501c2e629f24855e37421 /Source/cmSourceFilesRequireCommand.cxx | |
parent | 7b47a5d2ef1bb303b25a051d588a54616e44cbe9 (diff) | |
download | CMake-865ec96644ae08e66b9a4a15bd7cddde46d2e2b0.zip CMake-865ec96644ae08e66b9a4a15bd7cddde46d2e2b0.tar.gz CMake-865ec96644ae08e66b9a4a15bd7cddde46d2e2b0.tar.bz2 |
major changes to support multiple libraries and source lists
Diffstat (limited to 'Source/cmSourceFilesRequireCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesRequireCommand.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSourceFilesRequireCommand.cxx b/Source/cmSourceFilesRequireCommand.cxx index a489689..d52211e 100644 --- a/Source/cmSourceFilesRequireCommand.cxx +++ b/Source/cmSourceFilesRequireCommand.cxx @@ -18,7 +18,7 @@ // cmSourceFilesRequireCommand bool cmSourceFilesRequireCommand::Invoke(std::vector<std::string>& args) { - if(args.size() < 3 ) + if(args.size() < 4 ) { this->SetError("called with incorrect number of arguments"); return false; @@ -42,12 +42,14 @@ bool cmSourceFilesRequireCommand::Invoke(std::vector<std::string>& args) } // Add the rest of the arguments as source files + const char *sname = (*i).c_str(); + ++i; for(; i != args.end(); ++i) { cmClassFile file; file.m_AbstractClass = false; file.SetName((*i).c_str(), m_Makefile->GetCurrentDirectory()); - m_Makefile->AddClass(file); + m_Makefile->AddClass(file, sname); } return true; } |