diff options
Diffstat (limited to 'Source/cmCableCommand.cxx')
-rw-r--r-- | Source/cmCableCommand.cxx | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/Source/cmCableCommand.cxx b/Source/cmCableCommand.cxx index 396a0fe..42b4125 100644 --- a/Source/cmCableCommand.cxx +++ b/Source/cmCableCommand.cxx @@ -78,40 +78,5 @@ void cmCableCommand::SetupCableData() // command as its owner. pathName += "/cable_config.xml"; m_CableData = new cmCableData(this, pathName); - - // 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(); - cMakeLists += "/"; - cMakeLists += "CMakeLists.txt"; - - std::string command; -#if defined(_WIN32) && !defined(__CYGWIN__) - command = "\""; - command += m_Makefile->GetHomeDirectory(); - command += "/CMake/Source/CMakeSetupCMD\" \""; - command += cMakeLists; - command += "\" -DSP"; -#else - command = "\""; - command += m_Makefile->GetHomeOutputDirectory(); - command += "/CMake/Source/CMakeBuildTargets\" \""; - command += cMakeLists; - command += "\""; -#endif - command += " -H\""; - command += m_Makefile->GetHomeDirectory(); - command += "\" -S\""; - command += m_Makefile->GetStartDirectory(); - command += "\" -O\""; - command += m_Makefile->GetStartOutputDirectory(); - command += "\" -B\""; - command += m_Makefile->GetHomeOutputDirectory(); - command += "\""; - - std::vector<std::string> depends; - m_Makefile->AddCustomCommand(cMakeLists.c_str(), - command.c_str(), - depends, - "cable_config.xml"); } + |