|
|
@@ -81,23 +81,23 @@ 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 = "\"";
|
|
|
- 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__)
|
|
|
command = "\"";
|
|
|
command += m_Makefile->GetHomeDirectory();
|
|
|
- command += "/CMake/Source/CMakeSetupCMD\" ";
|
|
|
+ command += "/CMake/Source/CMakeSetupCMD\" \"";
|
|
|
command += cMakeLists;
|
|
|
- command += " -DSP";
|
|
|
+ command += "\" -DSP";
|
|
|
#else
|
|
|
command = "\"";
|
|
|
command += m_Makefile->GetHomeOutputDirectory();
|
|
|
- command += "/CMake/Source/CMakeBuildTargets\" ";
|
|
|
+ command += "/CMake/Source/CMakeBuildTargets\" \"";
|
|
|
command += cMakeLists;
|
|
|
+ command += "\"";
|
|
|
#endif
|
|
|
command += " -H\"";
|
|
|
command += m_Makefile->GetHomeDirectory();
|