Browse Source

ENH: LINK_LIBRARIES(abc) will automatically add the path to abc to the
link directories, if the path is known.

Amitha Perera 24 năm trước cách đây
mục cha
commit
17b02b6530
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Source/cmLinkLibrariesCommand.cxx

+ 6 - 0
Source/cmLinkLibrariesCommand.cxx

@@ -69,6 +69,12 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string>& args)
       {
       m_Makefile->AddLinkLibrary(i->c_str());  
       }
+
+    const char* dir = cmCacheManager::GetInstance()->GetCacheValue(i->c_str());
+    if( dir )
+      {
+      m_Makefile->AddLinkDirectory( dir );
+      }
     }
   return true;
 }