summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-22 14:28:53 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-22 14:28:53 (GMT)
commit15e38175a435a924436fd09009ce18d31d4911b0 (patch)
treec42496306836f3f5aa6587855495e911045fa4b4
parent259a49aaacb9de1a0d19ad6959d09a7000eb9bca (diff)
downloadCMake-15e38175a435a924436fd09009ce18d31d4911b0.zip
CMake-15e38175a435a924436fd09009ce18d31d4911b0.tar.gz
CMake-15e38175a435a924436fd09009ce18d31d4911b0.tar.bz2
BUG: CMake 1.4 configured projects did not build with new CMake.
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx20
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index 111a0a2..8e72943 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -73,10 +73,18 @@ int cmGlobalVisualStudio6Generator::TryCompile(const char *,
// now build the test
std::string makeCommand =
m_CMakeInstance->GetCacheManager()->GetCacheValue("CMAKE_MAKE_PROGRAM");
+ std::vector<std::string> mp;
+ mp.push_back("[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\6.0\\Setup;VsCommonDir]/MSDev98/Bin");
+ cmSystemTools::ExpandRegistryValues(mp[0]);
+ std::string originalCommand = makeCommand;
+ makeCommand = cmSystemTools::FindProgram(makeCommand.c_str(), mp);
if(makeCommand.size() == 0)
{
- cmSystemTools::Error(
- "Generator cannot find the appropriate make command.");
+ std::string e = "Generator cannot find make program \"";
+ e += originalCommand;
+ e += "\" specified by CMAKE_MAKE_PROGRAM cache entry. ";
+ e += "Please fix the setting.";
+ cmSystemTools::Error(e.c_str());
return 1;
}
makeCommand = cmSystemTools::ConvertToOutputPath(makeCommand.c_str());
@@ -112,7 +120,13 @@ int cmGlobalVisualStudio6Generator::TryCompile(const char *,
int retVal;
if (!cmSystemTools::RunCommand(makeCommand.c_str(), *output, retVal, 0, false))
{
- cmSystemTools::Error("Generator: execution of msdev failed.");
+ std::string e = "Error executing make program \"";
+ e += originalCommand;
+ e += "\" specified by CMAKE_MAKE_PROGRAM cache entry. ";
+ e += "The command string used was \"";
+ e += makeCommand.c_str();
+ e += "\".";
+ cmSystemTools::Error(e.c_str());
// return to the original directory
cmSystemTools::ChangeDirectory(cwd.c_str());
return 1;