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/cmCableSourceFilesCommand.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/cmCableSourceFilesCommand.cxx')
-rw-r--r-- | Source/cmCableSourceFilesCommand.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/cmCableSourceFilesCommand.cxx b/Source/cmCableSourceFilesCommand.cxx index 4665602..a0584dc 100644 --- a/Source/cmCableSourceFilesCommand.cxx +++ b/Source/cmCableSourceFilesCommand.cxx @@ -20,19 +20,23 @@ void cmCableSourceFilesCommand::FinalPass() { // Get the index of the current package's cmClassFile. // If it doesn't exist, ignore this command. - int index = m_CableData->GetPackageClassIndex(); - if(index < 0) + cmCablePackageCommand *cablePackage = m_CableData->GetCurrentPackage(); + std::string fileName = "Cxx/"; + fileName += cablePackage->GetPackageName(); + fileName += "_cxx"; + cmClassFile *ci = m_Makefile->GetClass(cablePackage->GetPackageName(), + fileName.c_str()); + + if(ci == 0) { return; } // The package's file has not yet been generated yet. The dependency // finder will need hints. Add one for each source file. - cmClassFile& cFile = m_Makefile->GetClasses()[index]; - for(Entries::const_iterator f = m_Entries.begin(); f != m_Entries.end(); ++f) { std::string header = *f+".h"; - cFile.m_Depends.push_back(header); + ci->m_Depends.push_back(header); } } |