Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
81cc1c73
Unverified
Commit
81cc1c73
authored
Nov 28, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use gzip if found
parent
eabda8f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
CMakeLists.txt
+12
-2
No files found.
CMakeLists.txt
View file @
81cc1c73
...
@@ -357,8 +357,18 @@ if(CIFPP_DOWNLOAD_CCD)
...
@@ -357,8 +357,18 @@ if(CIFPP_DOWNLOAD_CCD)
file
(
MAKE_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/data/
)
file
(
MAKE_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/data/
)
endif
()
endif
()
message
(
STATUS
"Trying to download the file https://files.wwpdb.org/pub/pdb/data/monomers/components.cif"
)
find_program
(
GUNZIP gunzip
)
file
(
DOWNLOAD
"https://files.wwpdb.org/pub/pdb/data/monomers/components.cif"
"
${
COMPONENTS_CIF
}
"
SHOW_PROGRESS STATUS CCD_FETCH_STATUS
)
if
(
GUNZIP
)
file
(
DOWNLOAD https://files.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
${
COMPONENTS_CIF
}
.gz
SHOW_PROGRESS
)
add_custom_command
(
OUTPUT
${
COMPONENTS_CIF
}
COMMAND
${
GUNZIP
}
${
COMPONENTS_CIF
}
.gz
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/data/
)
else
()
file
(
DOWNLOAD https://files.wwpdb.org/pub/pdb/data/monomers/components.cif
${
COMPONENTS_CIF
}
SHOW_PROGRESS
)
endif
()
list
(
POP_FRONT CCD_FETCH_STATUS CCD_FETCH_STATUS_CODE
)
list
(
POP_FRONT CCD_FETCH_STATUS CCD_FETCH_STATUS_CODE
)
if
(
NOT CCD_FETCH_STATUS_CODE EQUAL 0
)
if
(
NOT CCD_FETCH_STATUS_CODE EQUAL 0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment