summaryrefslogtreecommitdiffstats
path: root/Source/cmCMakeMinimumRequired.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-06-19 19:21:49 (GMT)
committerBrad King <brad.king@kitware.com>2002-06-19 19:21:49 (GMT)
commit07d35e662dc76fa7702d54f4a9b3ced3dac3c969 (patch)
tree9cde169f2d59b54ac0a779e0ef55d6260452f84c /Source/cmCMakeMinimumRequired.cxx
parent27a2cad0fcaa0c3733c0adf532d59df7ba3cde29 (diff)
downloadCMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.zip
CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.gz
CMake-07d35e662dc76fa7702d54f4a9b3ced3dac3c969.tar.bz2
ENH: Added cmStringStream class to wrap std::stringstream or std::strstream depending on the platform. The interface is that of std::stringstream, so no "ends" or "rdbuf()->freeze(0)" lines are needed.
Diffstat (limited to 'Source/cmCMakeMinimumRequired.cxx')
-rw-r--r--Source/cmCMakeMinimumRequired.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmCMakeMinimumRequired.cxx b/Source/cmCMakeMinimumRequired.cxx
index 6396532..4b7c9f5 100644
--- a/Source/cmCMakeMinimumRequired.cxx
+++ b/Source/cmCMakeMinimumRequired.cxx
@@ -35,11 +35,10 @@ bool cmCMakeMinimumRequired::InitialPass(std::vector<std::string> const& args)
sscanf(args[1].c_str(), "%f", &reqVersion);
if(reqVersion > version)
{
- std::strstream str;
+ cmStringStream str;
str << "WARNING: This project requires version: " << args[1].c_str() << " of cmake.\n"
- << "You are running version: " << version << std::ends;
- cmSystemTools::Message(str.str());
- delete [] str.str();
+ << "You are running version: " << version;
+ cmSystemTools::Message(str.str().c_str());
}
return true;
}