summaryrefslogtreecommitdiffstats
path: root/Source/cmAddLibraryCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-12 19:34:09 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-12 19:34:09 (GMT)
commite40aaa57c36387fdd8ecf6ffab0021a086dad969 (patch)
tree72fc95ac1ae033e888b906cffcc483d21cd61330 /Source/cmAddLibraryCommand.cxx
parentfb6c4b8710ea6023a2a55dddd7b0034c20f68705 (diff)
downloadCMake-e40aaa57c36387fdd8ecf6ffab0021a086dad969.zip
CMake-e40aaa57c36387fdd8ecf6ffab0021a086dad969.tar.gz
CMake-e40aaa57c36387fdd8ecf6ffab0021a086dad969.tar.bz2
some bug fixes
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r--Source/cmAddLibraryCommand.cxx7
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;
}