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
79ecf20b
Unverified
Commit
79ecf20b
authored
Sep 10, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sometimes extracting archives does not work in cmake
parent
1de9681b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CMakeLists.txt
+8
-8
No files found.
CMakeLists.txt
View file @
79ecf20b
...
@@ -278,7 +278,7 @@ if (NOT EXISTS ${COMPONENTS_CIF})
...
@@ -278,7 +278,7 @@ if (NOT EXISTS ${COMPONENTS_CIF})
file
(
MAKE_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/data/
)
file
(
MAKE_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/data/
)
endif
()
endif
()
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.19.0"
)
#
if(${CMAKE_VERSION} VERSION_LESS "3.19.0")
find_program
(
GUNZIP gunzip
)
find_program
(
GUNZIP gunzip
)
if
(
GUNZIP
)
if
(
GUNZIP
)
...
@@ -291,13 +291,13 @@ if (NOT EXISTS ${COMPONENTS_CIF})
...
@@ -291,13 +291,13 @@ if (NOT EXISTS ${COMPONENTS_CIF})
file
(
DOWNLOAD ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif
${
COMPONENTS_CIF
}
file
(
DOWNLOAD ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif
${
COMPONENTS_CIF
}
SHOW_PROGRESS
)
SHOW_PROGRESS
)
endif
()
endif
()
else
()
#
else()
file
(
DOWNLOAD ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif.gz
${
COMPONENTS_CIF
}
.gz
#
file(DOWNLOAD ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cif.gz ${COMPONENTS_CIF}.gz
SHOW_PROGRESS
)
#
SHOW_PROGRESS)
file
(
ARCHIVE_EXTRACT INPUT
${
COMPONENTS_CIF
}
.gz
#
file(ARCHIVE_EXTRACT INPUT ${COMPONENTS_CIF}.gz
DESTINATION
${
CMAKE_SOURCE_DIR
}
/data/
#
DESTINATION ${CMAKE_SOURCE_DIR}/data/
VERBOSE
)
#
VERBOSE)
endif
()
#
endif()
endif
()
endif
()
add_custom_target
(
COMPONENTS ALL DEPENDS
${
COMPONENTS_CIF
}
)
add_custom_target
(
COMPONENTS ALL DEPENDS
${
COMPONENTS_CIF
}
)
...
...
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