summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-25 15:58:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-25 15:58:01 (GMT)
commit8d3d137dc9b97e9c8acc5357572eea7ff0337014 (patch)
tree58d368cc31e07db0cff6eb2a5458efdea281159d /Source
parent2172a64ff1be7bad0210d316827fb70b6f0f0291 (diff)
downloadCMake-8d3d137dc9b97e9c8acc5357572eea7ff0337014.zip
CMake-8d3d137dc9b97e9c8acc5357572eea7ff0337014.tar.gz
CMake-8d3d137dc9b97e9c8acc5357572eea7ff0337014.tar.bz2
ENH: make sure special vs ide path is only used for msvc_ide builds
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 7707c3d..1641fc8 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1751,13 +1751,18 @@ cmLocalGenerator::ConstructScript(const cmCustomCommandLines& commandLines,
script += this->Convert(workingDirectory, START_OUTPUT, SHELL);
script += newline;
}
- const char* extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH");
- if(extraPath)
+ // for visual studio IDE add extra stuff to the PATH
+ // if CMAKE_MSVCIDE_RUN_PATH is set.
+ if(this->Makefile->GetDefinition("MSVC_IDE"))
{
- script += "set PATH=";
- script += extraPath;
- script += ";%PATH%";
- script += newline;
+ const char* extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH");
+ if(extraPath)
+ {
+ script += "set PATH=";
+ script += extraPath;
+ script += ";%PATH%";
+ script += newline;
+ }
}
// Write each command on a single line.
for(cmCustomCommandLines::const_iterator cl = commandLines.begin();