summaryrefslogtreecommitdiffstats
path: root/Source/cmCableWrapTclCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-07 18:52:29 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-07 18:52:29 (GMT)
commit4f77d737c9d2ee681e17f5a672e18e85164550f1 (patch)
tree3fdcdaeac75422a958ff4e288adeafaf15de0ecf /Source/cmCableWrapTclCommand.cxx
parent5b4a11af80d27649ef191f918e92c3e41779e987 (diff)
downloadCMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.zip
CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.gz
CMake-4f77d737c9d2ee681e17f5a672e18e85164550f1.tar.bz2
ENH: move utilities to targets from makefile, and add versioning to cache
Diffstat (limited to 'Source/cmCableWrapTclCommand.cxx')
-rw-r--r--Source/cmCableWrapTclCommand.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmCableWrapTclCommand.cxx b/Source/cmCableWrapTclCommand.cxx
index d7527da..8fca056 100644
--- a/Source/cmCableWrapTclCommand.cxx
+++ b/Source/cmCableWrapTclCommand.cxx
@@ -142,8 +142,8 @@ void cmCableWrapTclCommand::GenerateCableFiles() const
m_Makefile->ExpandVariablesInString(command);
std::vector<std::string> depends;
depends.push_back(command);
- command = cmSystemTools::EscapeSpaces(command.c_str());
- command += " "+packageConfigName+" -tcl "+packageTclFullName+".cxx";
+ std::string commandArgs = " "+packageConfigName+
+ " -tcl "+packageTclFullName+".cxx";
depends.push_back(packageConfigName);
@@ -152,6 +152,7 @@ void cmCableWrapTclCommand::GenerateCableFiles() const
m_Makefile->AddCustomCommand(packageConfigName.c_str(),
command.c_str(),
+ commandArgs.c_str(),
depends,
outputs, m_TargetName.c_str());
}
@@ -264,9 +265,10 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name,
std::string defineFlags = m_Makefile->GetDefineFlags();
std::string includeFlags = "-I";
- includeFlags += m_Makefile->GetStartDirectory();
+ includeFlags += std::string("\"") + m_Makefile->GetStartDirectory() + "\"";
- const std::vector<std::string>& includes = m_Makefile->GetIncludeDirectories();
+ const std::vector<std::string>& includes =
+ m_Makefile->GetIncludeDirectories();
for(std::vector<std::string>::const_iterator i = includes.begin();
i != includes.end(); ++i)
{
@@ -281,6 +283,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name,
m_Makefile->AddCustomCommand(classCxxName.c_str(),
command.c_str(),
+ "",
depends,
outputs, m_TargetName.c_str());
}
@@ -291,8 +294,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name,
m_Makefile->ExpandVariablesInString(command);
std::vector<std::string> depends;
depends.push_back(command);
- command = cmSystemTools::EscapeSpaces(command.c_str());
- command += " "+classConfigName+" -tcl "+classTclFullName+".cxx";
+ std::string commandArgs = " "+classConfigName+" -tcl "+classTclFullName+".cxx";
depends.push_back(classConfigName);
depends.push_back(classXmlName);
@@ -302,6 +304,7 @@ void cmCableWrapTclCommand::GenerateCableClassFiles(const char* name,
m_Makefile->AddCustomCommand(classConfigName.c_str(),
command.c_str(),
+ commandArgs.c_str(),
depends,
outputs, m_TargetName.c_str());
}