From 4ce05b6e07370ad07fe90139e7729f3004d7587a Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 12 May 2008 18:33:08 -0400 Subject: [PATCH] BUG: make ENABLE_LANGUAGE(ASM-ATT OPTIONAL) work again: if it didn't work but was optional, don't delete the cache Alex --- Source/cmGlobalUnixMakefileGenerator3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index e2512c980..43d97b3f6 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -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(