summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-06-19 18:35:08 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-06-19 18:35:08 (GMT)
commit03a8c9795ca21c1a6075f6ad443f143ad6ea9683 (patch)
tree7319c139d9df676565ca4ef4fc34c81868e2f827 /Source
parent089bea359eb26276c4e9eee3aba1426c16cc0165 (diff)
downloadCMake-03a8c9795ca21c1a6075f6ad443f143ad6ea9683.zip
CMake-03a8c9795ca21c1a6075f6ad443f143ad6ea9683.tar.gz
CMake-03a8c9795ca21c1a6075f6ad443f143ad6ea9683.tar.bz2
ENH: FindLibrary supports .Net specific lib dirs
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");