fixed cable package issue

This commit is contained in:
Ken Martin 2001-04-16 10:01:13 -04:00
parent e40aaa57c3
commit 7b362bdb1f
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@
=========================================================================*/
#include "cmCablePackageCommand.h"
#include "cmCacheManager.h"
#include "cmTarget.h"
cmCablePackageCommand::~cmCablePackageCommand()
@ -115,6 +116,9 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
depends,
outputs, m_TargetName.c_str());
// add the source list to the target
m_Makefile->GetTargets()[m_TargetName.c_str()].m_SourceLists.push_back(m_PackageName);
return true;
}

View File

@ -275,7 +275,7 @@ public:
/**
* Get the list of targets
*/
const cmTargets &GetTargets() { return m_Targets; }
cmTargets &GetTargets() { return m_Targets; }
/**
* Get a list of the build subdirectories.