diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-26 18:53:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-04-26 18:53:44 (GMT) |
commit | 2c1fb789d7a182ab0df53aad474a657d59d894b0 (patch) | |
tree | 3f4db8d752a6f3a218e92ad470efb97b5e7421c7 /Source/cmFindLibraryCommand.cxx | |
parent | 6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95 (diff) | |
download | CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.zip CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.tar.gz CMake-2c1fb789d7a182ab0df53aad474a657d59d894b0.tar.bz2 |
ENH: add help for cache entries
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r-- | Source/cmFindLibraryCommand.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx index 6587f06..c6da3e1 100644 --- a/Source/cmFindLibraryCommand.cxx +++ b/Source/cmFindLibraryCommand.cxx @@ -61,6 +61,7 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args) m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str()); cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), path[k].c_str(), + "Path to a library", cmCacheManager::PATH); return true; } @@ -70,6 +71,7 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args) m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str()); cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), path[k].c_str(), + "Path to a library", cmCacheManager::PATH); return true; } @@ -79,6 +81,7 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args) m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str()); cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), path[k].c_str(), + "Path to a library", cmCacheManager::PATH); return true; } @@ -86,14 +89,17 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args) if(cmSystemTools::FileExists(testF.c_str())) { m_Makefile->AddDefinition(args[0].c_str(), path[k].c_str()); - cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), - path[k].c_str(), - cmCacheManager::PATH); + cmCacheManager::GetInstance()-> + AddCacheEntry(args[0].c_str(), + path[k].c_str(), + "Path to a library.", + cmCacheManager::PATH); return true; } } cmCacheManager::GetInstance()->AddCacheEntry(args[0].c_str(), "NOTFOUND", + "Path to a library", cmCacheManager::PATH); std::string message = "Library not found: "; message += args[1]; |