Files
CMake/Tests/RunCMake/file-DOWNLOAD/no-file-arg.cmake
Brad King 52b9c7b958 Tests: Move CMake.FileDownload cases into RunCMake.file-DOWNLOAD
The RunCMake infrastructure is more well-suited to check the results of
each case.  It can also report more precisely what went wrong when a
case fails.
2022-11-18 09:02:15 -05:00

12 lines
211 B
CMake

include(common.cmake)
set(file "")
file_download()
set(file "${CMAKE_CURRENT_BINARY_DIR}/input.png")
if(NOT EXISTS "${file}")
message(FATAL_ERROR "file not downloaded to expected path:\n ${file}")
endif()