cmake: tar: Parse 'cmake -E tar' arguments
This Merge Request is related to: #16834
With previous cmake -E tar
implementation there is possible to:
- do not provide any action flag (eg. create, list, extract). Command failed badly with error that compression format is not correct :-)
- By provide not supported flag, the command will silently ignore it
- By providing several actions (eg. create, list, extract), the command will fail with strange errors
This Merge Request fix all these issues.
It is working very similar to standard tar
implementation.