summaryrefslogtreecommitdiffstats
path: root/Source/cmFindLibraryCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-11 15:39:31 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-11 15:39:31 (GMT)
commitf81ae298347d76bfacb82b002a30f518e8724d18 (patch)
treed0dbc2fa6f54d338f146d5b98b3431c22299ef40 /Source/cmFindLibraryCommand.cxx
parentdbfc72c6b515e65d9a85dfe0b38a27225a46cf69 (diff)
downloadCMake-f81ae298347d76bfacb82b002a30f518e8724d18.zip
CMake-f81ae298347d76bfacb82b002a30f518e8724d18.tar.gz
CMake-f81ae298347d76bfacb82b002a30f518e8724d18.tar.bz2
BUG: add back thread library
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r--Source/cmFindLibraryCommand.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 6833a09..a17bcfa 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -52,7 +52,22 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args)
// Now check and see if the value has been stored in the cache
// already, if so use that value and don't look for the program
std::string helpString = "Where can the ";
- helpString += args[1] + " library be found";
+ if(args[1] == "NAMES")
+ {
+ int i = 2;
+ while(args[i] != "PATHS" && i < args.size())
+ {
+ helpString = "( ";
+ helpString += args[i];
+ helpString += " ";
+ i++;
+ }
+ }
+ else
+ {
+ helpString += args[1];
+ }
+ helpString += " library be found";
const char* cacheValue
= cmCacheManager::GetInstance()->GetCacheValue(args[0].c_str());
if(cacheValue && strcmp(cacheValue, "NOTFOUND"))