diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-25 13:38:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-25 13:38:29 (GMT) |
commit | 0005d625a0f46e6071adfb394b82e5bf8c74a291 (patch) | |
tree | a40292954d27d409ffb5811912dfbbb2a8fc918b /Source/cmLocalGenerator.cxx | |
parent | bb08b88cc4be791172801d0e6ffdae2a3691f413 (diff) | |
download | CMake-0005d625a0f46e6071adfb394b82e5bf8c74a291.zip CMake-0005d625a0f46e6071adfb394b82e5bf8c74a291.tar.gz CMake-0005d625a0f46e6071adfb394b82e5bf8c74a291.tar.bz2 |
ENH: add special windows CMAKE_MSVCIDE_RUN_PATH variable for adding to the path of vs IDE for running custom commands from cmake
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6ada0d9..988db36 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1726,7 +1726,14 @@ 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) + { + script += "set PATH="; + script += extraPath; + script += ";%PATH%"; + script += newline; + } // Write each command on a single line. for(cmCustomCommandLines::const_iterator cl = commandLines.begin(); cl != commandLines.end(); ++cl) |