diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 13:49:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:13 (GMT) |
commit | cac529dd495f05dcd24d33dd5fa595ff28eb7a60 (patch) | |
tree | 0f5c90d4ccd017e2ed053aa2dc5a28c9ac1c8860 /Source/cmAddExecutableCommand.cxx | |
parent | 7c9db8f8139b945d4c55d9061e4ef122351b210d (diff) | |
download | CMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.zip CMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.tar.gz CMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.tar.bz2 |
clang-tidy: apply performance-faster-string-find fixes
Diffstat (limited to 'Source/cmAddExecutableCommand.cxx')
-rw-r--r-- | Source/cmAddExecutableCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddExecutableCommand.cxx b/Source/cmAddExecutableCommand.cxx index 2a0bb15..aae1085 100644 --- a/Source/cmAddExecutableCommand.cxx +++ b/Source/cmAddExecutableCommand.cxx @@ -61,7 +61,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args, !cmGlobalGenerator::IsReservedTarget(exename); if (nameOk && !importTarget && !isAlias) { - nameOk = exename.find(":") == std::string::npos; + nameOk = exename.find(':') == std::string::npos; } if (!nameOk) { cmake::MessageType messageType = cmake::AUTHOR_WARNING; |