diff options
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r-- | Source/cmTryCompileCommand.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index d4a2d1a..3972e2a 100644 --- a/Source/cmTryCompileCommand.cxx +++ b/Source/cmTryCompileCommand.cxx @@ -155,12 +155,12 @@ int cmTryCompileCommand::CoreTryCompileCode( } else { - std::vector<std::string> lang; - mf->GetCMakeInstance()->GetGlobalGenerator()->GetEnabledLanguages(lang); + std::vector<std::string> langs; + mf->GetCMakeInstance()->GetGlobalGenerator()->GetEnabledLanguages(langs); std::string msg = "TRY_COMPILE only works for enabled languages files," "\nCurrently enabled languages are:\n"; - for(std::vector<std::string>::iterator l = lang.begin(); - l != lang.end(); ++l) + for(std::vector<std::string>::iterator l = langs.begin(); + l != langs.end(); ++l) { msg += *l; msg += " "; |