mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-01 12:18:36 -06:00
Access string npos without instance
This commit is contained in:
committed by
Brad King
parent
389ed56f63
commit
8b6f439ef2
@@ -369,7 +369,7 @@ bool cmAddCustomCommandCommand::CheckOutputs(
|
||||
|
||||
// Make sure the output file name has no invalid characters.
|
||||
std::string::size_type pos = o->find_first_of("#<>");
|
||||
if (pos != o->npos) {
|
||||
if (pos != std::string::npos) {
|
||||
std::ostringstream msg;
|
||||
msg << "called with OUTPUT containing a \"" << (*o)[pos]
|
||||
<< "\". This character is not allowed.";
|
||||
|
||||
Reference in New Issue
Block a user