From e418e7281b6ab230906adeb9aa85dd2a9aee8139 Mon Sep 17 00:00:00 2001 From: "Benjamin T. Johnson" Date: Fri, 26 Jan 2024 04:14:18 +0000 Subject: [PATCH] modification to test/CMakeLists.txt file to ensure that it is properly checking for existence of untarred directory --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ae76ed1..bf8a7f3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -87,9 +87,9 @@ else() # Download CRTM coefficients # Define the directory to untar into set(UNTAR_DEST "${CMAKE_BINARY_DIR}/test_data/${PROJECT_VERSION}") - message(STATUS "Checking if ${UNTAR_DEST} already exists...") + message(STATUS "Checking if ${UNTAR_DEST}/${CRTM_COEFFS_BRANCH} already exists...") # Only untar if the CHECK_PATH does not exist - if(NOT EXISTS ${UNTAR_DEST}) + if(NOT EXISTS ${UNTAR_DEST}/${CRTM_COEFFS_BRANCH}/) message(STATUS "Untarring the downloaded file (~2 minutes) to ${UNTAR_DEST}") execute_process(COMMAND tar -xzf ${DOWNLOAD_DEST} -C ${UNTAR_DEST} RESULT_VARIABLE result