summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkLibrariesCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-18 18:04:28 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-12-18 18:04:28 (GMT)
commitc3840b5cc3e26886bab16faf7e27a4ef80f3686d (patch)
tree854f1415ffa4b5dc377dfee9f213c437bf1b8c18 /Source/cmLinkLibrariesCommand.cxx
parent31bb398dc332c74726f5a896973450f6518685d1 (diff)
downloadCMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.zip
CMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.tar.gz
CMake-c3840b5cc3e26886bab16faf7e27a4ef80f3686d.tar.bz2
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 d45f246..56d4937 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 );
}