From 03a8c9795ca21c1a6075f6ad443f143ad6ea9683 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Wed, 19 Jun 2002 14:35:08 -0400 Subject: ENH: FindLibrary supports .Net specific lib dirs --- Source/cmSystemTools.cxx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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"); -- cgit v0.12