summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx21
1 files changed, 20 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index fef551f..c357c3e 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1587,7 +1587,7 @@ std::string cmSystemTools::FindLibrary(const char* name,
if (genName)
{
if (!strcmp(genName, "NMake Makefiles") ||
- !strncmp(genName, "Visual Studio ", 14))
+ !strcmp(genName, "Visual Studio 6"))
{
const char* compiler = makefile->GetDefinition("CMAKE_CXX_COMPILER");
if (compiler)
@@ -1602,6 +1602,25 @@ std::string cmSystemTools::FindLibrary(const char* name,
}
}
}
+ else if (!strcmp(genName, "Visual Studio 7"))
+ {
+ // It is likely that the compiler won't be in the path for .Net, but
+ // we know where devenv is.
+ const char* devenv = makefile->GetDefinition("MICROSOFT_DEVENV");
+ if (devenv)
+ {
+ std::string devenv_path = cmSystemTools::FindProgram(devenv);
+ if (devenv_path.size())
+ {
+ std::string vc7_path =
+ cmSystemTools::GetFilenamePath(
+ cmSystemTools::GetFilenamePath(
+ cmSystemTools::GetFilenamePath(devenv_path))) + "/Vc7";
+ path.push_back(vc7_path + "/lib");
+ path.push_back(vc7_path + "/PlatformSDK/lib");
+ }
+ }
+ }
else if (!strcmp(genName, "Borland Makefiles"))
{
const char* bcb_bin_path = makefile->GetDefinition("BCB_BIN_PATH");