summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-10 15:49:20 -0400
committerBrad King <brad.king@kitware.com>2021-05-11 15:08:08 -0400
commit4281cd15dba47a802889dfc891470239db91dd96 (patch)
treec8a7e8575d5cbe786a5a126a3c7cb613dd7ee8da
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadcmake-4281cd15dba47a802889dfc891470239db91dd96.tar.gz
clang-tidy: fix `bugprone-redundant-branch-condition`
-rw-r--r--Source/CPack/cpack.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 85c13ada76..a778939033 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -341,7 +341,7 @@ int main(int argc, char const* const* argv)
cmMakefile* mf = &globalMF;
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE,
"Specified generator: " << gen << std::endl);
- if (parsed && !mf->GetDefinition("CPACK_PACKAGE_NAME")) {
+ if (!mf->GetDefinition("CPACK_PACKAGE_NAME")) {
cmCPack_Log(&log, cmCPackLog::LOG_ERROR,
"CPack project name not specified" << std::endl);
parsed = 0;