summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/cmakelibc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/cmakelibc/CMakeLists.txt')
-rw-r--r--languages/cpp/app_templates/cmakelibc/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt
index 841853d8..9db2bf91 100644
--- a/languages/cpp/app_templates/cmakelibc/CMakeLists.txt
+++ b/languages/cpp/app_templates/cmakelibc/CMakeLists.txt
@@ -10,9 +10,10 @@
#################################################
add_custom_target( cmakelibc.tar.gz ALL
- COMMAND tar zcf cmakelibc.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
- test.c lib.h lib.c cmakelibc.png cmakelibc-CMakeLists.txt
- CMakeLists.txt.src
+ COMMAND tar --transform \"flags=r\;s/cmakelibc-CMakeLists.txt/CMakeLists.txt/\"
+ -zcf cmakelibc.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ test.c lib.h lib.c cmakelibc.png cmakelibc-CMakeLists.txt
+ CMakeLists.txt.src
)