summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/File-MD5-Works.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-16 01:39:36 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-16 15:15:01 (GMT)
commit042f7965c3a5db7420363fdb76f9ebaa8e93efdc (patch)
treed6537eef3a37cbd65e3ea09da6df0b23cd192e9a /Tests/CMakeTests/File-MD5-Works.cmake
parented7cef563445644684af47720c2f7c6fb0a2e440 (diff)
downloadCMake-042f7965c3a5db7420363fdb76f9ebaa8e93efdc.zip
CMake-042f7965c3a5db7420363fdb76f9ebaa8e93efdc.tar.gz
CMake-042f7965c3a5db7420363fdb76f9ebaa8e93efdc.tar.bz2
Add file(MD5) command to compute cryptographic hash
Provide a CMake-language binding to the md5sum function previously available only by "cmake -E md5sum".
Diffstat (limited to 'Tests/CMakeTests/File-MD5-Works.cmake')
-rw-r--r--Tests/CMakeTests/File-MD5-Works.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeTests/File-MD5-Works.cmake b/Tests/CMakeTests/File-MD5-Works.cmake
new file mode 100644
index 0000000..2989e98
--- /dev/null
+++ b/Tests/CMakeTests/File-MD5-Works.cmake
@@ -0,0 +1,2 @@
+file(MD5 ${CMAKE_CURRENT_LIST_DIR}/File-Copy-NoDest.cmake md5)
+message("${md5}")