Skip to content

Commit

Permalink
Not nice
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Dec 5, 2023
1 parent df3263e commit b14237e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ if(CIFPP_DOWNLOAD_CCD)
# decompress it ourselves.
find_program(GUNZIP gunzip)

if(NOT GUNZIP STREQUAL "GUNZIP-NOTFOUND")
if(WIN32 OR GUNZIP STREQUAL "GUNZIP-NOTFOUND")
file(DOWNLOAD https://files.wwpdb.org/pub/pdb/data/monomers/components.cif ${COMPONENTS_CIF}
SHOW_PROGRESS STATUS CCD_FETCH_STATUS)
else()
if(NOT EXISTS "${COMPONENTS_CIF}.gz")
file(DOWNLOAD https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz ${COMPONENTS_CIF}.gz
SHOW_PROGRESS STATUS CCD_FETCH_STATUS)
Expand All @@ -387,9 +390,6 @@ if(CIFPP_DOWNLOAD_CCD)
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/rsrc/)

add_custom_target(COMPONENTS ALL DEPENDS ${COMPONENTS_CIF})
else()
file(DOWNLOAD https://files.wwpdb.org/pub/pdb/data/monomers/components.cif ${COMPONENTS_CIF}
SHOW_PROGRESS STATUS CCD_FETCH_STATUS)
endif()

# Do not continue if downloading went wrong
Expand Down

0 comments on commit b14237e

Please sign in to comment.