mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 06:30:20 -06:00
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.
12 lines
307 B
CMake
12 lines
307 B
CMake
include(common.cmake)
|
|
|
|
# Test downloading without saving to a file.
|
|
set(file "")
|
|
file_download()
|
|
|
|
foreach(name input.png output.png TIMEOUT)
|
|
if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/${name}")
|
|
message(FATAL_ERROR "file incorrectly saved to:\n ${CMAKE_CURRENT_BINARY_DIR}/${name}")
|
|
endif()
|
|
endforeach()
|