diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:17 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:17 +0900 |
commit | 5dfa20f6e3908ae58658cd105297f8aa3b4eb1d6 (patch) | |
tree | 7edb8aa96d464a81152f81bf0a6b85415f99999f /Source/CPack | |
parent | a9a515dd6b7b96484920a3f0f1202393b91dfd2e (diff) | |
download | cmake-5dfa20f6e3908ae58658cd105297f8aa3b4eb1d6.tar.gz cmake-5dfa20f6e3908ae58658cd105297f8aa3b4eb1d6.tar.bz2 cmake-5dfa20f6e3908ae58658cd105297f8aa3b4eb1d6.zip |
Imported Upstream version 3.11.1upstream/3.11.1
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cpack.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index 507a10c3e..b6ff38b84 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -350,16 +350,16 @@ int main(int argc, char const* const* argv) } if (parsed) { cpackGenerator = generators.NewGenerator(gen); - if (!cpackGenerator) { + if (cpackGenerator) { + cpackGenerator->SetTrace(trace); + cpackGenerator->SetTraceExpand(traceExpand); + } else { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Cannot initialize CPack generator: " << gen << std::endl); parsed = 0; } - cpackGenerator->SetTrace(trace); - cpackGenerator->SetTraceExpand(traceExpand); - if (parsed && !cpackGenerator->Initialize(gen, mf)) { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Cannot initialize the generator " << gen |