summaryrefslogtreecommitdiffstats
path: root/Source/cmFindLibraryCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-07-18 19:21:26 (GMT)
committerBrad King <brad.king@kitware.com>2006-07-18 19:21:26 (GMT)
commitec637248da517e9e1f60775f95a6d8974f6c5071 (patch)
treeb4a90053f3b3690330d51af417bc6efe00fe0719 /Source/cmFindLibraryCommand.cxx
parent48571e9d802c137470711fa39477e1c439a93d72 (diff)
downloadCMake-ec637248da517e9e1f60775f95a6d8974f6c5071.zip
CMake-ec637248da517e9e1f60775f95a6d8974f6c5071.tar.gz
CMake-ec637248da517e9e1f60775f95a6d8974f6c5071.tar.bz2
BUG: If the user specifies a cache entry on the command line without a type, the FIND_* commands should add the type and docstring to the given value and put it back in the cache.
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r--Source/cmFindLibraryCommand.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 1cac120..24d5b04 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -52,6 +52,15 @@ bool cmFindLibraryCommand::InitialPass(std::vector<std::string> const& argsIn)
}
if(this->AlreadyInCache)
{
+ // If the user specifies the entry on the command line without a
+ // type we should add the type and docstring but keep the original
+ // value.
+ if(this->AlreadyInCacheWithoutMetaInfo)
+ {
+ this->Makefile->AddCacheDefinition(this->VariableName.c_str(), "",
+ this->VariableDocumentation.c_str(),
+ cmCacheManager::FILEPATH);
+ }
return true;
}
// add special 64 bit paths if this is a 64 bit compile.