From 2c150d4d6b0b22d57a83fad27f2a415e2bc5d60e Mon Sep 17 00:00:00 2001 From: Kimball Thurston Date: Sun, 21 May 2023 13:08:07 +1200 Subject: [PATCH] Prevent re-download of images if already in place Signed-off-by: Kimball Thurston --- src/test/bin/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/bin/CMakeLists.txt b/src/test/bin/CMakeLists.txt index 93020d1851..37e40b3cfb 100644 --- a/src/test/bin/CMakeLists.txt +++ b/src/test/bin/CMakeLists.txt @@ -38,8 +38,10 @@ if(BUILD_TESTING) ) foreach(image ${images}) + if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${image}) message(STATUS "Downloading ${images_url}/${image}") file(DOWNLOAD ${images_url}/${image} ${CMAKE_CURRENT_BINARY_DIR}/${image}) + endif() endforeach() add_test(NAME OpenEXR.bin.exrinfo