summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-23 13:08:00 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-23 13:08:00 (GMT)
commitd85738fe3f2c6bc0cdb63b7e18c49233bd549ad7 (patch)
treeaa9d6e24f6395f99a0f558804fdfdac69dcc8170 /Source/cmTryCompileCommand.cxx
parent67ac3ea5036f946557abb5ba7fde0bee4f17ace2 (diff)
downloadCMake-d85738fe3f2c6bc0cdb63b7e18c49233bd549ad7.zip
CMake-d85738fe3f2c6bc0cdb63b7e18c49233bd549ad7.tar.gz
CMake-d85738fe3f2c6bc0cdb63b7e18c49233bd549ad7.tar.bz2
remove warning
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx8
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 += " ";