From 7b362bdb1f45699f5fc527f314e6433a8416eb52 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 16 Apr 2001 10:01:13 -0400 Subject: [PATCH] fixed cable package issue --- Source/cmCablePackageCommand.cxx | 4 ++++ Source/cmMakefile.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/cmCablePackageCommand.cxx b/Source/cmCablePackageCommand.cxx index af835a53e..3b19f15b1 100644 --- a/Source/cmCablePackageCommand.cxx +++ b/Source/cmCablePackageCommand.cxx @@ -15,6 +15,7 @@ =========================================================================*/ #include "cmCablePackageCommand.h" #include "cmCacheManager.h" +#include "cmTarget.h" cmCablePackageCommand::~cmCablePackageCommand() @@ -115,6 +116,9 @@ bool cmCablePackageCommand::Invoke(std::vector& 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; } diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index f72a6ed9a..fd12074ea 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -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.