diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-18 21:14:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:36:57 (GMT) |
commit | 416df93aa93d0a633f0e7354d0562934f676768b (patch) | |
tree | 11937ca00d29012dad0f84e5ab7b93ee374de257 /Source/cmCoreTryCompile.cxx | |
parent | 37b88d348a20921c835ce7aa99f6db62271503a7 (diff) | |
download | CMake-416df93aa93d0a633f0e7354d0562934f676768b.zip CMake-416df93aa93d0a633f0e7354d0562934f676768b.tar.gz CMake-416df93aa93d0a633f0e7354d0562934f676768b.tar.bz2 |
Convert some raw loops to cmWrap.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index bcd2d81..e9390e4 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -683,11 +683,9 @@ void cmCoreTryCompile::FindOutputFile(const std::string& targetName) std::ostringstream emsg; emsg << "Unable to find the executable at any of:\n"; - for (unsigned int i = 0; i < searchDirs.size(); ++i) - { - emsg << " " << this->BinaryDirectory << searchDirs[i] - << tmpOutputFile << "\n"; - } + emsg << cmWrap(" " + this->BinaryDirectory, + searchDirs, + tmpOutputFile, "\n") << "\n"; this->FindErrorMessage = emsg.str(); return; } |