summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-04 03:03:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-04 03:03:53 (GMT)
commit3e6a1f9afa359fc9af442d9e9173dafd24ddf151 (patch)
tree6b76a17e19d2634023d09ea6559ad8f284917003
parentd4e84f8c5b0deea6d1559a0894662965ff9b7edc (diff)
downloadCMake-3e6a1f9afa359fc9af442d9e9173dafd24ddf151.zip
CMake-3e6a1f9afa359fc9af442d9e9173dafd24ddf151.tar.gz
CMake-3e6a1f9afa359fc9af442d9e9173dafd24ddf151.tar.bz2
ENH: make sure path is converted to unix
-rw-r--r--Source/cmIncludeExternalMSProjectCommand.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmIncludeExternalMSProjectCommand.cxx b/Source/cmIncludeExternalMSProjectCommand.cxx
index 03fe69e..7a9248f 100644
--- a/Source/cmIncludeExternalMSProjectCommand.cxx
+++ b/Source/cmIncludeExternalMSProjectCommand.cxx
@@ -42,13 +42,14 @@ bool cmIncludeExternalMSProjectCommand::InitialPass(std::vector<std::string> con
std::string utility_name("INCLUDE_EXTERNAL_MSPROJECT");
utility_name += "_";
utility_name += args[0];
-
+ std::string path = args[1];
+ cmSystemTools::ConvertToUnixSlashes(path);
const char* no_output = 0;
const char* no_working_directory = 0;
this->Makefile->AddUtilityCommand(utility_name.c_str(), true,
no_output, depends,
no_working_directory,
- args[0].c_str(), args[1].c_str());
+ args[0].c_str(), path.c_str());
}
#endif