Skip to content

fix tar arguments

Juerg Marti requested to merge juerg/extra-cmake-modules:fix/tarball into master

With the recent commit 9dd889636 new arguments for tar are used when generating tarballs of templates. And the files to be compressed are passed twice to tar:

  1. {CMAKE_CURRENT_SOURCE_DIR}/{_templateName}
  2. .

The generated tarballs have a weird structure as shown on the screenshot. Files are included twice and some symlinks are generated. The template can not be read by kapptemplate or kdevelopp. This was tested with Gnu Tar 1.30 on Linux.

Just omitting {CMAKE_CURRENT_SOURCE_DIR}/{_templateName} seems to fix the problem.

Merge request reports