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/cmAuxSourceDirectoryCommand.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/cmAuxSourceDirectoryCommand.cxx')
-rw-r--r-- | Source/cmAuxSourceDirectoryCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx index 64aa7d2..368d5e2 100644 --- a/Source/cmAuxSourceDirectoryCommand.cxx +++ b/Source/cmAuxSourceDirectoryCommand.cxx @@ -19,9 +19,9 @@ // cmAuxSourceDirectoryCommand bool cmAuxSourceDirectoryCommand::Invoke(std::vector<std::string>& args) { - if(args.size() < 1 || args.size() > 1) + if(args.size() < 2 || args.size() > 2) { - this->SetError("PROJECT called with incorrect number of arguments"); + this->SetError("called with incorrect number of arguments"); return false; } @@ -52,7 +52,7 @@ bool cmAuxSourceDirectoryCommand::Invoke(std::vector<std::string>& args) cmClassFile cmfile; cmfile.SetName(fullname.c_str(), m_Makefile->GetCurrentDirectory()); cmfile.m_AbstractClass = false; - m_Makefile->AddClass(cmfile); + m_Makefile->AddClass(cmfile,args[1].c_str()); } } } |