Commit e7519358 authored by Brad King's avatar Brad King
Browse files

BUG: Fixed output of CMakeLists.txt path in cable_config.xml dependency list...

BUG: Fixed output of CMakeLists.txt path in cable_config.xml dependency list for unix.  Needed to escape spaces instead of enclosing in double quotes.
parent 73644c3a
......@@ -73,19 +73,20 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args)
{
// We must add a custom rule to cause the cable_config.xml to be re-built
// when it is removed. Rebuilding it means re-running CMake.
std::string cMakeLists = "\"";
cMakeLists += m_Makefile->GetStartDirectory();
std::string cMakeLists = m_Makefile->GetStartDirectory();
cMakeLists += "/";
cMakeLists += "CMakeLists.txt\"";
cMakeLists += "CMakeLists.txt";
std::string command;
#if defined(_WIN32) && !defined(__CYGWIN__)
cMakeLists = "\""+cMakeLists+"\"";
command = "\"";
command += m_Makefile->GetHomeDirectory();
command += "/CMake/Source/CMakeSetupCMD\" \"";
command += cMakeLists;
command += "\" -DSP";
#else
cMakeLists = cmSystemTools::EscapeSpaces(cMakeLists.c_str());
command = "\"";
command += m_Makefile->GetHomeOutputDirectory();
command += "/CMake/Source/CMakeBuildTargets\" \"";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment