
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.
11 lines
222 B
CMake
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()
|