BUG: make ENABLE_LANGUAGE(ASM-ATT OPTIONAL) work again: if it didn't work

but was optional, don't delete the cache

Alex
This commit is contained in:
Alexander Neundorf 2008-05-12 18:33:08 -04:00
parent 83c3bf7acc
commit 4ce05b6e07
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ void cmGlobalUnixMakefileGenerator3
const char* cname = this->GetCMakeInstance()->
GetCacheManager()->GetCacheValue(langComp.c_str());
std::string changeVars;
if(cname && (path != cname))
if(cname && (path != cname) && (optional==false))
{
const char* cvars =
this->GetCMakeInstance()->GetProperty(