BUG: Do not require CMAKE_AR in the MSYS Makefiles generator when enabling language "NONE".
This commit is contained in:
parent
1845925e8f
commit
c37b45ee9f
|
@ -78,7 +78,10 @@ void cmGlobalMSYSMakefileGenerator
|
||||||
mf->AddDefinition("CMAKE_GENERATOR_CC", gcc.c_str());
|
mf->AddDefinition("CMAKE_GENERATOR_CC", gcc.c_str());
|
||||||
mf->AddDefinition("CMAKE_GENERATOR_CXX", gxx.c_str());
|
mf->AddDefinition("CMAKE_GENERATOR_CXX", gxx.c_str());
|
||||||
this->cmGlobalUnixMakefileGenerator3::EnableLanguage(l, mf, optional);
|
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
|
cmSystemTools::Error
|
||||||
("CMAKE_AR was not found, please set to archive program. ",
|
("CMAKE_AR was not found, please set to archive program. ",
|
||||||
|
|
Loading…
Reference in New Issue