diff options
author | Brad King <brad.king@kitware.com> | 2001-04-30 15:51:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-04-30 15:51:17 (GMT) |
commit | e7519358e748e66f88b7c277a6d59fff502dad4a (patch) | |
tree | 7b4a9b4478bbc3c5aeadd2c789a247269ba2df33 /Source | |
parent | 73644c3acd315b8e194be7fa068cdab0e94ca340 (diff) | |
download | CMake-e7519358e748e66f88b7c277a6d59fff502dad4a.zip CMake-e7519358e748e66f88b7c277a6d59fff502dad4a.tar.gz CMake-e7519358e748e66f88b7c277a6d59fff502dad4a.tar.bz2 |
BUG: Fixed output of CMakeLists.txt path in cable_config.xml dependency list for unix. Needed to escape spaces instead of enclosing in double quotes.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmCablePackageCommand.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmCablePackageCommand.cxx b/Source/cmCablePackageCommand.cxx index 9a2e369..98febc8 100644 --- a/Source/cmCablePackageCommand.cxx +++ b/Source/cmCablePackageCommand.cxx @@ -73,19 +73,20 @@ bool cmCablePackageCommand::Invoke(std::vector<std::string>& args) { // 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__) + cMakeLists = "\""+cMakeLists+"\""; command = "\""; command += m_Makefile->GetHomeDirectory(); command += "/CMake/Source/CMakeSetupCMD\" \""; command += cMakeLists; command += "\" -DSP"; #else + cMakeLists = cmSystemTools::EscapeSpaces(cMakeLists.c_str()); command = "\""; command += m_Makefile->GetHomeOutputDirectory(); command += "/CMake/Source/CMakeBuildTargets\" \""; |