mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
BUG: Do not require CMAKE_AR in the MSYS Makefiles generator when enabling language "NONE".
This commit is contained in:
@@ -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. ",
|
||||
|
||||
Reference in New Issue
Block a user