summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-07 22:14:13 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-07 22:14:13 (GMT)
commit0829faa9e180abc0be38f634bbb3ba63ac0b3702 (patch)
tree6897841cb621c82ad3b360769a9e857bcb4d0777 /Source/cmMakefile.cxx
parent885e37da224353e242e7135b0fc8e6f2445a54c7 (diff)
downloadCMake-0829faa9e180abc0be38f634bbb3ba63ac0b3702.zip
CMake-0829faa9e180abc0be38f634bbb3ba63ac0b3702.tar.gz
CMake-0829faa9e180abc0be38f634bbb3ba63ac0b3702.tar.bz2
ENH: Moved cache entry addition into cmMakefile::AddLibrary and AddExecutable so that commands do not have to add it explicitly.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c5d566e..3e2e81c 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -470,6 +470,12 @@ void cmMakefile::AddLibrary(const char* lname, const std::vector<std::string> &s
target.SetInAll(true);
target.GetSourceLists() = srcs;
m_Targets.insert(cmTargets::value_type(lname,target));
+
+ // Add an entry into the cache
+ cmCacheManager::GetInstance()->
+ AddCacheEntry(lname,
+ this->GetCurrentOutputDirectory(),
+ "Path to a library", cmCacheManager::INTERNAL);
}
void cmMakefile::AddExecutable(const char *exeName,
@@ -480,6 +486,12 @@ void cmMakefile::AddExecutable(const char *exeName,
target.SetInAll(true);
target.GetSourceLists() = srcs;
m_Targets.insert(cmTargets::value_type(exeName,target));
+
+ // Add an entry into the cache
+ cmCacheManager::GetInstance()->
+ AddCacheEntry(exeName,
+ this->GetCurrentOutputDirectory(),
+ "Path to an executable", cmCacheManager::INTERNAL);
}