summaryrefslogtreecommitdiffhomepage
path: root/cmake/tarball.cmake
diff options
context:
space:
mode:
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()