diff --git a/cmake/external/cudnn-frontend.cmake b/cmake/external/cudnn-frontend.cmake index cab8431d3abb2..3bc3897e48ac8 100644 --- a/cmake/external/cudnn-frontend.cmake +++ b/cmake/external/cudnn-frontend.cmake @@ -76,7 +76,10 @@ function(download_cudnn-frontend) endif() endfunction() -download_dirent() +if(NOT EXISTS ${CUDNN_FRONTEND_DOWNLOAD_DIR}/${CUDNN_FRONTEND_CACHE_FILENAME}) + message(STATUS "Local package ${CUDNN_FRONTEND_CACHE_FILENAME} not found, starting download.") + download_cudnn-frontend() +endif() ExternalProject_Add( extern_cudnn_frontend diff --git a/cmake/external/dirent.cmake b/cmake/external/dirent.cmake index 35287581363c6..582be6f7d231f 100644 --- a/cmake/external/dirent.cmake +++ b/cmake/external/dirent.cmake @@ -55,7 +55,10 @@ function(download_dirent) endif() endfunction() -download_dirent() +if(NOT EXISTS ${DIRENT_DOWNLOAD_DIR}/${DIRENT_CACHE_FILENAME}) + message(STATUS "Local package ${DIRENT_CACHE_FILENAME} not found, starting download.") + download_dirent() +endif() ExternalProject_Add( extern_dirent