diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2013-12-18 21:38:56 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-01-04 17:43:12 (GMT) |
commit | a1e542f19551072f101404e16e1dad901189f039 (patch) | |
tree | 215a0e8627dfabc2e113c5881b52c29aa013abbd /Source/CPack | |
parent | 7fb2b806626b9af791d7372d2ff82b2cf1503237 (diff) | |
download | CMake-a1e542f19551072f101404e16e1dad901189f039.zip CMake-a1e542f19551072f101404e16e1dad901189f039.tar.gz CMake-a1e542f19551072f101404e16e1dad901189f039.tar.bz2 |
Use Encoding::CommandLineArguments for main() functions.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cpack.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index 438b16d..a19b778 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -25,6 +25,7 @@ #include <cmsys/CommandLineArguments.hxx> #include <cmsys/SystemTools.hxx> +#include <cmsys/Encoding.hxx> //---------------------------------------------------------------------------- static const char * cmDocumentationName[][2] = @@ -97,8 +98,13 @@ int cpackDefinitionArgument(const char* argument, const char* cValue, //---------------------------------------------------------------------------- // this is CPack. -int main (int argc, char *argv[]) +int main (int argc, char const* const* argv) { + cmsys::Encoding::CommandLineArguments args = + cmsys::Encoding::CommandLineArguments::Main(argc, argv); + argc = args.argc(); + argv = args.argv(); + cmSystemTools::FindCMakeResources(argv[0]); cmCPackLog log; |