Commit c37b45ee authored by David Cole's avatar David Cole
Browse files

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

parent 1845925e
......@@ -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. ",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment