ENH: make sure special vs ide path is only used for msvc_ide builds

This commit is contained in:
Bill Hoffman 2006-04-25 11:58:01 -04:00
parent 2172a64ff1
commit 8d3d137dc9
1 changed files with 11 additions and 6 deletions

View File

@ -1751,6 +1751,10 @@ cmLocalGenerator::ConstructScript(const cmCustomCommandLines& commandLines,
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
script += newline;
}
// for visual studio IDE add extra stuff to the PATH
// if CMAKE_MSVCIDE_RUN_PATH is set.
if(this->Makefile->GetDefinition("MSVC_IDE"))
{
const char* extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH");
if(extraPath)
{
@ -1759,6 +1763,7 @@ cmLocalGenerator::ConstructScript(const cmCustomCommandLines& commandLines,
script += ";%PATH%";
script += newline;
}
}
// Write each command on a single line.
for(cmCustomCommandLines::const_iterator cl = commandLines.begin();
cl != commandLines.end(); ++cl)