Skip to content

Commit

Permalink
modification to test/CMakeLists.txt file to ensure that it is properl…
Browse files Browse the repository at this point in the history
…y checking for existence of untarred directory
  • Loading branch information
BenjaminTJohnson committed Jan 26, 2024
1 parent 20fd3a7 commit e418e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e418e72

Please sign in to comment.