diff options
author | Brad King <brad.king@kitware.com> | 2008-01-02 20:53:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-02 20:53:28 (GMT) |
commit | 62ff2befcc01eabefd2fbddfccdc2fba17640d0e (patch) | |
tree | 3eded81f31daad542ad5de8d8e732eb07f5f6d48 /Source | |
parent | 60bf0531b01b641a00f6844dfd38ef803d2deda1 (diff) | |
download | CMake-62ff2befcc01eabefd2fbddfccdc2fba17640d0e.zip CMake-62ff2befcc01eabefd2fbddfccdc2fba17640d0e.tar.gz CMake-62ff2befcc01eabefd2fbddfccdc2fba17640d0e.tar.bz2 |
BUG: Do not use VSMacros stuff for VS8sp0 because macros do not work in that version.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 7662be9..5f755a6 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -74,6 +74,19 @@ void cmGlobalVisualStudio8Generator::Configure() //---------------------------------------------------------------------------- std::string cmGlobalVisualStudio8Generator::GetUserMacrosDirectory() { + // Some VS8 sp0 versions cannot run macros. + // See http://support.microsoft.com/kb/928209 + const char* vc8sp1Registry = + "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\InstalledProducts\\KB926601;"; + const char* vc8exSP1Registry = + "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\InstalledProducts\\KB926748;"; + std::string vc8sp1; + if (!cmSystemTools::ReadRegistryValue(vc8sp1Registry, vc8sp1) && + !cmSystemTools::ReadRegistryValue(vc8exSP1Registry, vc8sp1)) + { + return ""; + } + std::string base; std::string path; |