summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-08 22:30:53 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-08 22:30:53 (GMT)
commit519f9d81e3221e1b53452e2cd0c421faf4721eb8 (patch)
treebc0e941ba62cb387b34554d13e5df53054844875
parent71153219e19446350006f84e0b712e912bb0e291 (diff)
downloadCMake-519f9d81e3221e1b53452e2cd0c421faf4721eb8.zip
CMake-519f9d81e3221e1b53452e2cd0c421faf4721eb8.tar.gz
CMake-519f9d81e3221e1b53452e2cd0c421faf4721eb8.tar.bz2
ENH: Creation of generator rule now properly uses the custom command's m_Source member.
-rw-r--r--Source/cmCablePackageCommand.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmCablePackageCommand.cxx b/Source/cmCablePackageCommand.cxx
index 50332b3..9fff8fd 100644
--- a/Source/cmCablePackageCommand.cxx
+++ b/Source/cmCablePackageCommand.cxx
@@ -38,11 +38,9 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
// Add custom rules to the makefile to generate this package's source
// files.
- std::vector<std::string> depends;
- depends.push_back("cable_config.xml");
-
std::string command = "${CABLE}";
m_Makefile->ExpandVariablesInString(command);
+ std::vector<std::string> depends;
depends.push_back(command);
command += " cable_config.xml";
@@ -51,13 +49,13 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
std::string packageSource = packageFile+".cxx";
// A rule for the package's header file.
- m_Makefile->AddCustomCommand("",
+ m_Makefile->AddCustomCommand("cable_config.xml",
packageHeader.c_str(),
command.c_str(),
depends);
// A rule for the package's source file.
- m_Makefile->AddCustomCommand("",
+ m_Makefile->AddCustomCommand("cable_config.xml",
packageSource.c_str(),
command.c_str(),
depends);