From 9240e1e11f501925bd196049ff662201fd3372b4 Mon Sep 17 00:00:00 2001 From: Jared Duffey Date: Thu, 15 Aug 2024 10:37:56 -0400 Subject: [PATCH] Added SIMPLNX_DOWNLOAD_TEST_FILES_FIRST option * Forces test files to be downloaded before simplnx * This will hopefully fix the issue of downloads failing on the CI sporadically Signed-off-by: Jared Duffey --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7401d833fd..9f24b1b32f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -829,6 +829,11 @@ target_include_directories(simplnx $ ) +cmake_dependent_option(SIMPLNX_DOWNLOAD_TEST_FILES_FIRST "Forces test files to download before simplnx builds" OFF "SIMPLNX_DOWNLOAD_TEST_FILES" OFF) +if(SIMPLNX_DOWNLOAD_TEST_FILES_FIRST) + add_dependencies(simplnx Fetch_Remote_Data_Files) +endif() + # ------------------------------------------------------------------------------ # CLI Executable # ------------------------------------------------------------------------------