diff options
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index 68845e4..736d567 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -14,6 +14,7 @@ =========================================================================*/ #include "cmAddLibraryCommand.h" +#include "cmCacheManager.h" // cmLibraryCommand bool cmAddLibraryCommand::Invoke(std::vector<std::string>& args) @@ -28,6 +29,12 @@ bool cmAddLibraryCommand::Invoke(std::vector<std::string>& args) std::vector<std::string> srclists(++s, args.end()); m_Makefile->AddLibrary(args[0].c_str(),srclists); + + // Add an entry into the cache + cmCacheManager::GetInstance()-> + AddCacheEntry(args[0].c_str(), + m_Makefile->GetCurrentOutputDirectory(), + cmCacheManager::INTERNAL); return true; } |