summaryrefslogtreecommitdiffhomepage
path: root/cmake/tarball.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-18 09:44:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-18 10:05:52 +0200
commitf1e71e68512bc58f3f41ba4566f9d1574773d742 (patch)
treeda6e7c1f8769354678a75781be950d5f910b9c08 /cmake/tarball.cmake
parent14d27dd0998b18a2eb13d30c8680701a9b619a08 (diff)
cmake: regen before making tarball
Updates timestamp as it should.
Diffstat (limited to 'cmake/tarball.cmake')
-rw-r--r--cmake/tarball.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/tarball.cmake b/cmake/tarball.cmake
new file mode 100644
index 00000000..5761e24a
--- /dev/null
+++ b/cmake/tarball.cmake
@@ -0,0 +1,8 @@
+execute_process(COMMAND cmake ${CMAKE_BINARY_DIR} RESULT_VARIABLE ret)
+if(NOT ret EQUAL 0)
+ message(FATAL_ERROR "can't regen")
+endif()
+execute_process(COMMAND cmake --build ${CMAKE_BINARY_DIR} --target tarball-real2)
+if(NOT ret EQUAL 0)
+ message(FATAL_ERROR "can't make tarball")
+endif()