cmake/Tests/RunCMake/file-DOWNLOAD/file-without-path.cmake
2023-05-23 16:38:00 +02:00

11 lines
222 B
CMake

include(common.cmake)
set(file_orig "${file}")
cmake_path(GET file_orig FILENAME file)
file_download()
if(NOT EXISTS "${file_orig}")
message(FATAL_ERROR "file not downloaded to expected path:\n ${file_orig}")
endif()