summaryrefslogtreecommitdiffstats
path: root/Modules/UntarFile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/UntarFile.cmake')
-rw-r--r--Modules/UntarFile.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/UntarFile.cmake b/Modules/UntarFile.cmake
index 9f8e4df..df33db8 100644
--- a/Modules/UntarFile.cmake
+++ b/Modules/UntarFile.cmake
@@ -59,6 +59,7 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E tar ${args} ${filename}
RESULT_VARIABLE rv)
if(NOT rv EQUAL 0)
+ file(REMOVE_RECURSE "${ut_dir}")
message(FATAL_ERROR "error: untar of '${filename}' failed")
endif()