no-file.cmake 307 B

1234567891011
  1. include(common.cmake)
  2. # Test downloading without saving to a file.
  3. set(file "")
  4. file_download()
  5. foreach(name input.png output.png TIMEOUT)
  6. if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/${name}")
  7. message(FATAL_ERROR "file incorrectly saved to:\n ${CMAKE_CURRENT_BINARY_DIR}/${name}")
  8. endif()
  9. endforeach()