summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalData/NormalData1.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-05 19:54:02 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-07 16:09:01 (GMT)
commitc0debb1f89de47f13f7b9682ebd24b772a649e78 (patch)
tree15e09c0a61f81ef5e4e0fdb6533ca7987c031d17 /Tests/RunCMake/ExternalData/NormalData1.cmake
parentdaae0d2f5b0f9f5e1db3615d85d39ee819d50175 (diff)
parentec85306025ae787e08d4ce097fde966f1809c74f (diff)
downloadCMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.zip
CMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.tar.gz
CMake-c0debb1f89de47f13f7b9682ebd24b772a649e78.tar.bz2
Merge branch 'master' into generator-toolset
We need the latest Tests/CMakeLists.txt so we can refactor all tests.
Diffstat (limited to 'Tests/RunCMake/ExternalData/NormalData1.cmake')
-rw-r--r--Tests/RunCMake/ExternalData/NormalData1.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/NormalData1.cmake b/Tests/RunCMake/ExternalData/NormalData1.cmake
new file mode 100644
index 0000000..d6cc384
--- /dev/null
+++ b/Tests/RunCMake/ExternalData/NormalData1.cmake
@@ -0,0 +1,13 @@
+include(ExternalData)
+set(ExternalData_URL_TEMPLATES
+ "file:///${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
+ )
+set(input Data.txt)
+set(output ${CMAKE_CURRENT_BINARY_DIR}/Data.txt)
+ExternalData_Expand_Arguments(Data args DATA{${input}})
+if("x${args}" STREQUAL "x${output}")
+ message(STATUS "Data reference correctly transformed!")
+else()
+ message(FATAL_ERROR "Data reference transformed to:\n ${args}\n"
+ "but we expected:\n ${output}")
+endif()