summaryrefslogtreecommitdiffstats
path: root/Source/cmCableCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-19 16:01:33 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-19 16:01:33 (GMT)
commit28cdb197821f9d01e171070244d92ac250c47f0a (patch)
treee4d6d83a322439f4cde1305cd73c90a1639c6dc9 /Source/cmCableCommand.cxx
parent31ae187d0c2420b74cbfe767b68d101aa8d2f4ba (diff)
downloadCMake-28cdb197821f9d01e171070244d92ac250c47f0a.zip
CMake-28cdb197821f9d01e171070244d92ac250c47f0a.tar.gz
CMake-28cdb197821f9d01e171070244d92ac250c47f0a.tar.bz2
ERR: Changed generation of rule to generate cable_config.xml to be produced differently for windows and unix.
Diffstat (limited to 'Source/cmCableCommand.cxx')
-rw-r--r--Source/cmCableCommand.cxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/cmCableCommand.cxx b/Source/cmCableCommand.cxx
index 2d22308..f200037 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";