summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake')
-rw-r--r--Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake b/Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake
new file mode 100644
index 0000000..a4c4638
--- /dev/null
+++ b/Tests/RunCMake/ExternalData/MissingDataWithAssociated.cmake
@@ -0,0 +1,10 @@
+include(ExternalData)
+
+set(output "${CMAKE_BINARY_DIR}/MissingData.txt")
+ExternalData_Expand_Arguments(Data args DATA{MissingData.txt,Data.txt})
+if("x${args}" STREQUAL "x${output}")
+ message(STATUS "Missing data reference correctly transformed!")
+else()
+ message(FATAL_ERROR "Missing data reference transformed to:\n ${args}\n"
+ "but we expected:\n ${output}")
+endif()