cmake/Tests/RunCMake/file-DOWNLOAD/no-file-arg.cmake

12 lines
211 B
CMake
Raw Normal View History

2023-05-23 16:38:00 +02:00
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()