diff options
author | Brad King <brad.king@kitware.com> | 2021-05-10 19:49:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-11 19:08:08 (GMT) |
commit | 4281cd15dba47a802889dfc891470239db91dd96 (patch) | |
tree | c8a7e8575d5cbe786a5a126a3c7cb613dd7ee8da /Source/CPack/cpack.cxx | |
parent | ee87e53d3732a6482841c01c16e89f2822137d0e (diff) | |
download | CMake-4281cd15dba47a802889dfc891470239db91dd96.zip CMake-4281cd15dba47a802889dfc891470239db91dd96.tar.gz CMake-4281cd15dba47a802889dfc891470239db91dd96.tar.bz2 |
clang-tidy: fix `bugprone-redundant-branch-condition`
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r-- | Source/CPack/cpack.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index 85c13ad..a778939 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; |