summaryrefslogtreecommitdiffstats
path: root/Source/cmCableCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-04-09 13:44:29 (GMT)
committerBrad King <brad.king@kitware.com>2001-04-09 13:44:29 (GMT)
commite7bd5fcd19064480142aae2928189dc822fad47c (patch)
tree51b21d4bd06ff5b6e53e30c60ad01d0f322cb795 /Source/cmCableCommand.cxx
parent70b14df3f06177a1e65dfc9eb4bb4c0b0938a2a2 (diff)
downloadCMake-e7bd5fcd19064480142aae2928189dc822fad47c.zip
CMake-e7bd5fcd19064480142aae2928189dc822fad47c.tar.gz
CMake-e7bd5fcd19064480142aae2928189dc822fad47c.tar.bz2
ENH: Added support for spaces in the output directory names. Spaces in the input directory name may work also, but are untested.
Diffstat (limited to 'Source/cmCableCommand.cxx')
-rw-r--r--Source/cmCableCommand.cxx24
1 files changed, 14 insertions, 10 deletions
diff --git a/Source/cmCableCommand.cxx b/Source/cmCableCommand.cxx
index 8e23945..03e0656 100644
--- a/Source/cmCableCommand.cxx
+++ b/Source/cmCableCommand.cxx
@@ -81,29 +81,33 @@ void cmCableCommand::SetupCableData()
// 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 = m_Makefile->GetStartDirectory();
+ std::string cMakeLists = "\"";
+ cMakeLists += m_Makefile->GetStartDirectory();
cMakeLists += "/";
- cMakeLists += "CMakeLists.txt";
+ cMakeLists += "CMakeLists.txt\"";
std::string command;
#if defined(_WIN32) && !defined(__CYGWIN__)
- command = m_Makefile->GetHomeDirectory();
- command += "/CMake/Source/CMakeSetupCMD ";
+ command = "\"";
+ command += m_Makefile->GetHomeDirectory();
+ command += "/CMake/Source/CMakeSetupCMD\" ";
command += cMakeLists;
command += " -DSP";
#else
- command = m_Makefile->GetHomeOutputDirectory();
- command += "/CMake/Source/CMakeBuildTargets ";
+ command = "\"";
+ command += m_Makefile->GetHomeOutputDirectory();
+ command += "/CMake/Source/CMakeBuildTargets\" ";
command += cMakeLists;
#endif
- command += " -H";
+ command += " -H\"";
command += m_Makefile->GetHomeDirectory();
- command += " -S";
+ command += "\" -S\"";
command += m_Makefile->GetStartDirectory();
- command += " -O";
+ command += "\" -O\"";
command += m_Makefile->GetStartOutputDirectory();
- command += " -B";
+ command += "\" -B\"";
command += m_Makefile->GetHomeOutputDirectory();
+ command += "\"";
std::vector<std::string> depends;
m_Makefile->AddCustomCommand(cMakeLists.c_str(),