|
|
@@ -661,7 +661,7 @@ bool cmake::SetCacheArgs(std::vector<std::string> const& args)
|
|
|
state->SetWorkingMode(SCRIPT_MODE);
|
|
|
state->SetHomeDirectory(cmSystemTools::GetLogicalWorkingDirectory());
|
|
|
state->SetHomeOutputDirectory(cmSystemTools::GetLogicalWorkingDirectory());
|
|
|
- state->ReadListFile(args, path);
|
|
|
+ state->ReadListFile(args, cmSystemTools::ToNormalizedPathOnDisk(path));
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
@@ -802,7 +802,7 @@ void cmake::ReadListFile(std::vector<std::string> const& args,
|
|
|
snapshot.SetDefaultDefinitions();
|
|
|
cmMakefile mf(gg, snapshot);
|
|
|
if (this->GetWorkingMode() != NORMAL_MODE) {
|
|
|
- mf.SetScriptModeFile(cmSystemTools::ToNormalizedPathOnDisk(path));
|
|
|
+ mf.SetScriptModeFile(path);
|
|
|
mf.SetArgcArgv(args);
|
|
|
}
|
|
|
if (!cmSystemTools::FileExists(path, true)) {
|