summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalMSYSMakefileGenerator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalMSYSMakefileGenerator.cxx')
-rw-r--r--Source/cmGlobalMSYSMakefileGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalMSYSMakefileGenerator.cxx b/Source/cmGlobalMSYSMakefileGenerator.cxx
index e6d14b5..c07f7a6 100644
--- a/Source/cmGlobalMSYSMakefileGenerator.cxx
+++ b/Source/cmGlobalMSYSMakefileGenerator.cxx
@@ -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. ",