BUG: Do not require CMAKE_AR in the MSYS Makefiles generator when enabling language "NONE".

This commit is contained in:
David Cole 2008-12-01 14:41:47 -05:00
parent 1845925e8f
commit c37b45ee9f
1 changed files with 4 additions and 1 deletions

View File

@ -78,7 +78,10 @@ void cmGlobalMSYSMakefileGenerator
mf->AddDefinition("CMAKE_GENERATOR_CC", gcc.c_str());
mf->AddDefinition("CMAKE_GENERATOR_CXX", gxx.c_str());
this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
if(!mf->IsSet("CMAKE_AR") && !this->CMakeInstance->GetIsInTryCompile())
if(!mf->IsSet("CMAKE_AR") &&
!this->CMakeInstance->GetIsInTryCompile() &&
!(1==l.size() && l[0]=="NONE"))
{
cmSystemTools::Error
("CMAKE_AR was not found, please set to archive program. ",