Tests/RunCMake/ExternalData/MissingData.cmake
raw| 1 | include(ExternalData) |
| 2 | |
| 3 | set(output "${CMAKE_SOURCE_DIR}/MissingData.txt") |
| 4 | ExternalData_Expand_Arguments(Data args DATA{MissingData.txt}) |
| 5 | if("x${args}" STREQUAL "x${output}") |
| 6 | message(STATUS "Missing data reference correctly transformed!") |
| 7 | else() |
| 8 | message(FATAL_ERROR "Missing data reference transformed to:\n ${args}\n" |
| 9 | "but we expected:\n ${output}") |
| 10 | endif() |