summaryrefslogtreecommitdiff
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-11-27 15:33:43 -0500
committerKen Martin <ken.martin@kitware.com>2001-11-27 15:33:43 -0500
commita99f293e3a317c6b09698879a9953373fd9056fb (patch)
tree4348992d3cf17717cd142343818ba3ea6cee7350 /Source/cmLinkLibrariesCommand.cxx
parentfcb647bae4cdeedb8e80d078e9ac6547bbac2782 (diff)
downloadcmake-a99f293e3a317c6b09698879a9953373fd9056fb.tar.gz
removed extra lib paths to avoid finding old libs
Diffstat (limited to 'Source/cmLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmLinkLibrariesCommand.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx
index 2e28dfadee..b3c297ac67 100644
--- a/Source/cmLinkLibrariesCommand.cxx
+++ b/Source/cmLinkLibrariesCommand.cxx
@@ -70,12 +70,17 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> 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;
}