BUG: fix for bug 6234, use cd /d so that drives can be changed.
This commit is contained in:
parent
34c04d6d02
commit
feea7133ef
|
@ -19,6 +19,7 @@
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmSourceFile.h"
|
#include "cmSourceFile.h"
|
||||||
#include "cmSystemTools.h"
|
#include "cmSystemTools.h"
|
||||||
|
#include "windows.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator()
|
cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator()
|
||||||
|
@ -143,6 +144,13 @@ cmLocalVisualStudioGenerator
|
||||||
script += newline;
|
script += newline;
|
||||||
newline = newline_text;
|
newline = newline_text;
|
||||||
script += "cd ";
|
script += "cd ";
|
||||||
|
OSVERSIONINFO osv;
|
||||||
|
osv.dwOSVersionInfoSize = sizeof(osv);
|
||||||
|
GetVersionEx(&osv);
|
||||||
|
if(osv.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS)
|
||||||
|
{
|
||||||
|
script += "/d ";
|
||||||
|
}
|
||||||
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
|
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
|
||||||
|
|
||||||
// Change the working drive.
|
// Change the working drive.
|
||||||
|
|
Loading…
Reference in New Issue