summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-28 13:00:10 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-28 13:00:10 (GMT)
commite841dde6c3a9229d53c8d2fdf00ce5073cadf016 (patch)
treefea3828f9eecd82116c1cda09429f99d7dd81d16 /Source/cmGlobalVisualStudio7Generator.cxx
parente6d820ed49dfa56f7ed7df2fa09db7828a57fcae (diff)
downloadCMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.zip
CMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.tar.gz
CMake-e841dde6c3a9229d53c8d2fdf00ce5073cadf016.tar.bz2
ENH: merge changes from main tree
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index ff67fd0..f1bf776 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -40,6 +40,22 @@ void cmGlobalVisualStudio7Generator::EnableLanguage(std::vector<std::string>cons
// Create list of configurations requested by user's cache, if any.
this->cmGlobalGenerator::EnableLanguage(lang, mf);
this->GenerateConfigurations(mf);
+
+ // if this environment variable is set, then copy it to
+ // a static cache entry. It will be used by
+ // cmLocalGenerator::ConstructScript, to add an extra PATH
+ // to all custom commands. This is because the VS IDE
+ // does not use the environment it is run in, and this allows
+ // for running commands and using dll's that the IDE environment
+ // does not know about.
+ const char* extraPath = cmSystemTools::GetEnv("CMAKE_MSVCIDE_RUN_PATH");
+ if(extraPath)
+ {
+ mf->AddCacheDefinition("CMAKE_MSVCIDE_RUN_PATH",
+ extraPath, "Saved environment variable CMAKE_MSVCIDE_RUN_PATH",
+ cmCacheManager::STATIC);
+ }
+
}
std::string cmGlobalVisualStudio7Generator::GenerateBuildCommand(const char* makeProgram,