Partial fix from bug #10503, use full paths to fix custom commands.
This fixes tests ExternalProject and LinkDirectory for VS 2010.
This commit is contained in:
parent
a63dc3271a
commit
cf3e42f811
@ -261,7 +261,9 @@ cmSourceFile* cmLocalVisualStudio7Generator::CreateVCProjBuildRule()
|
|||||||
START_OUTPUT, UNCHANGED, true);
|
START_OUTPUT, UNCHANGED, true);
|
||||||
commandLine.push_back(args);
|
commandLine.push_back(args);
|
||||||
commandLine.push_back("--check-stamp-file");
|
commandLine.push_back("--check-stamp-file");
|
||||||
commandLine.push_back(stampName.c_str());
|
std::string stampFilename = this->Convert(stampName.c_str(), FULL,
|
||||||
|
SHELL);
|
||||||
|
commandLine.push_back(stampFilename.c_str());
|
||||||
|
|
||||||
std::vector<std::string> const& listFiles = this->Makefile->GetListFiles();
|
std::vector<std::string> const& listFiles = this->Makefile->GetListFiles();
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ cmLocalVisualStudioGenerator
|
|||||||
script += newline;
|
script += newline;
|
||||||
newline = newline_text;
|
newline = newline_text;
|
||||||
script += "cd ";
|
script += "cd ";
|
||||||
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
|
script += this->Convert(workingDirectory, FULL, SHELL);
|
||||||
|
|
||||||
// Change the working drive.
|
// Change the working drive.
|
||||||
if(workingDirectory[0] && workingDirectory[1] == ':')
|
if(workingDirectory[0] && workingDirectory[1] == ':')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user