diff options
Diffstat (limited to 'Source/cmCMakeMinimumRequired.cxx')
-rw-r--r-- | Source/cmCMakeMinimumRequired.cxx | 7 |
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; } |