summaryrefslogtreecommitdiff
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-18 13:04:28 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-18 13:04:28 -0500
commitc3840b5cc3e26886bab16faf7e27a4ef80f3686d (patch)
tree854f1415ffa4b5dc377dfee9f213c437bf1b8c18 /Source/cmLinkLibrariesCommand.cxx
parent31bb398dc332c74726f5a896973450f6518685d1 (diff)
downloadcmake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.tar.gz
BUG: Fix Bug #445 - Same library in multiple projects can cause problems
Diffstat (limited to 'Source/cmLinkLibrariesCommand.cxx')
-rw-r--r--Source/cmLinkLibrariesCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx
index d45f24667e..56d4937167 100644
--- a/Source/cmLinkLibrariesCommand.cxx
+++ b/Source/cmLinkLibrariesCommand.cxx
@@ -50,7 +50,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args)
{
std::string libPath = *i + "_CMAKE_PATH";
const char* dir = m_Makefile->GetDefinition(libPath.c_str());
- if( dir )
+ if( dir && *dir )
{
m_Makefile->AddLinkDirectory( dir );
}