summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ExternalData/Semicolon3.cmake
blob: 2ae99da98e18f0bc2223c982d3e1dcd48546f1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
include(ExternalData)
set(ExternalData_URL_TEMPLATES
  "file:///${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
  )
set(input "DATA{a;b}")
ExternalData_Expand_Arguments(Data args "${input}")
if("x${args}" STREQUAL "x${input}")
  message(STATUS "Data arguments correctly not transformed!")
else()
  message(FATAL_ERROR "Data arguments transformed to:\n  ${args}\n"
    "but we expected:\n  ${input}")
endif()