ENH: make sure special vs ide path is only used for msvc_ide builds
This commit is contained in:
parent
2172a64ff1
commit
8d3d137dc9
@ -1751,13 +1751,18 @@ cmLocalGenerator::ConstructScript(const cmCustomCommandLines& commandLines,
|
|||||||
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
|
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
|
||||||
script += newline;
|
script += newline;
|
||||||
}
|
}
|
||||||
const char* extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH");
|
// for visual studio IDE add extra stuff to the PATH
|
||||||
if(extraPath)
|
// if CMAKE_MSVCIDE_RUN_PATH is set.
|
||||||
|
if(this->Makefile->GetDefinition("MSVC_IDE"))
|
||||||
{
|
{
|
||||||
script += "set PATH=";
|
const char* extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH");
|
||||||
script += extraPath;
|
if(extraPath)
|
||||||
script += ";%PATH%";
|
{
|
||||||
script += newline;
|
script += "set PATH=";
|
||||||
|
script += extraPath;
|
||||||
|
script += ";%PATH%";
|
||||||
|
script += newline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Write each command on a single line.
|
// Write each command on a single line.
|
||||||
for(cmCustomCommandLines::const_iterator cl = commandLines.begin();
|
for(cmCustomCommandLines::const_iterator cl = commandLines.begin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user