diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-18 12:25:24 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-04-18 12:25:24 (GMT) |
commit | 4709c76f0f6f1a9aba80f01b13cbabfe8b80c187 (patch) | |
tree | 4a10a57446a8c9b8c3dc686fc97ec1c07d90f50d /Source/CPack/cpack.cxx | |
parent | 77771481dd0fedee9bd1df420bf29d298e3c337a (diff) | |
download | CMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.zip CMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.tar.gz CMake-4709c76f0f6f1a9aba80f01b13cbabfe8b80c187.tar.bz2 |
ENH: More cleanups and add stgz header script, so it does not have to be hard-coded. Also, the user can overwrite it
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r-- | Source/CPack/cpack.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index 8dff672..fa4afb1 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -338,11 +338,7 @@ int main (int argc, char *argv[]) << generator.c_str() << std::endl); parsed = 0; } - if ( parsed && !cpackGenerator->Initialize(gen, mf) ) - { - parsed = 0; - } - if ( parsed && !cpackGenerator->FindRunningCMake(argv[0]) ) + if ( parsed && !cpackGenerator->Initialize(gen, mf, argv[0]) ) { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Cannot initialize the generator" << std::endl); |