summaryrefslogtreecommitdiffstats
path: root/Source/cmCablePackageCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-16 14:01:13 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-16 14:01:13 (GMT)
commit7b362bdb1f45699f5fc527f314e6433a8416eb52 (patch)
tree8b6886435d123c8ea95a6fc53d8c572e72c6ad7a /Source/cmCablePackageCommand.cxx
parente40aaa57c36387fdd8ecf6ffab0021a086dad969 (diff)
downloadCMake-7b362bdb1f45699f5fc527f314e6433a8416eb52.zip
CMake-7b362bdb1f45699f5fc527f314e6433a8416eb52.tar.gz
CMake-7b362bdb1f45699f5fc527f314e6433a8416eb52.tar.bz2
fixed cable package issue
Diffstat (limited to 'Source/cmCablePackageCommand.cxx')
-rw-r--r--Source/cmCablePackageCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCablePackageCommand.cxx b/Source/cmCablePackageCommand.cxx
index af835a5..3b19f15 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<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;
}