summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake
diff options
context:
space:
mode:
authorAsit Dhal <dhal.asitk@gmail.com>2020-09-17 17:29:31 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-21 17:08:11 (GMT)
commit195d14e7818244789638fffd2087b8b2d0952622 (patch)
tree7e46f8f1f6dfbb60dc73bb600e1190369bc00bc0 /Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake
parent4fc07cd369cd46fbd859f140eda971d00ac52704 (diff)
downloadCMake-195d14e7818244789638fffd2087b8b2d0952622.zip
CMake-195d14e7818244789638fffd2087b8b2d0952622.tar.gz
CMake-195d14e7818244789638fffd2087b8b2d0952622.tar.bz2
file(ARCHIVE_CREATE): Add option to control compression level
Fixes: #21125
Diffstat (limited to 'Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake')
-rw-r--r--Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake b/Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake
new file mode 100644
index 0000000..adedc34
--- /dev/null
+++ b/Tests/RunCMake/File_Archive/argument-validation-compression-level-1.cmake
@@ -0,0 +1,8 @@
+set(OUTPUT_NAME "test.tar.gz")
+
+set(ARCHIVE_FORMAT gnutar)
+set(COMPRESSION_TYPE GZip)
+
+include(${CMAKE_CURRENT_LIST_DIR}/compression-level.cmake)
+
+check_compression_level("100")