Skip to content

Commit

Permalink
Prevent re-download of images if already in place (#1426)
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed May 21, 2023
1 parent 9e47dfd commit a542824
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a542824

Please sign in to comment.