From a99f293e3a317c6b09698879a9953373fd9056fb Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 27 Nov 2001 15:33:43 -0500 Subject: [PATCH] removed extra lib paths to avoid finding old libs --- Source/cmLinkLibrariesCommand.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx index 2e28dfade..b3c297ac6 100644 --- a/Source/cmLinkLibrariesCommand.cxx +++ b/Source/cmLinkLibrariesCommand.cxx @@ -70,12 +70,17 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector const& args) m_Makefile->AddLinkLibrary(i->c_str()); } - const char* dir = m_Makefile->GetDefinition(i->c_str()); - if( dir ) + const char* ldir = m_Makefile->GetDefinition("LIBRARY_OUTPUT_PATH"); + if (cmSystemTools::IsOff(ldir)) { - m_Makefile->AddLinkDirectory( dir ); + const char* dir = m_Makefile->GetDefinition(i->c_str()); + if( dir ) + { + m_Makefile->AddLinkDirectory( dir ); + } } } + return true; }