From 28cdb197821f9d01e171070244d92ac250c47f0a Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 19 Mar 2001 11:01:33 -0500 Subject: [PATCH] ERR: Changed generation of rule to generate cable_config.xml to be produced differently for windows and unix. --- Source/cmCableCommand.cxx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Source/cmCableCommand.cxx b/Source/cmCableCommand.cxx index 2d22308bb..f200037f0 100644 --- a/Source/cmCableCommand.cxx +++ b/Source/cmCableCommand.cxx @@ -84,12 +84,18 @@ void cmCableCommand::SetupCableData() std::string cMakeLists = m_Makefile->GetStartDirectory(); cMakeLists += "/"; cMakeLists += "CMakeLists.txt"; - std::string command = m_Makefile->GetHomeOutputDirectory(); - command += "/CMake/Source/"; - command += cmSystemTools::GetCMakeExecutableName(); - command += " " + cMakeLists; - command += " "; - command += cmSystemTools::GetCMakeExecutableOptions(); + + std::string command; +#if defined(_WIN32) && !defined(__CYGWIN__) + command = m_Makefile->GetHomeDirectory(); + command += "/CMake/Source/CMakeSetupCMD "; + command += cMakeLists; + command += " -DSP"; +#else + command = m_Makefile->GetHomeOutputDirectory(); + command += "/CMake/Source/CMakeBuildTargets "; + command += cMakeLists; +#endif command += " -H"; command += m_Makefile->GetHomeDirectory(); command += " -S";