Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
autopybind11
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joe Snyder
autopybind11
Commits
49642f92
Commit
49642f92
authored
4 years ago
by
John Parent
Browse files
Options
Downloads
Patches
Plain Diff
Add script to install eigen in CI
parent
7d05caf8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/eigen.cmake
+36
-0
36 additions, 0 deletions
.gitlab/ci/eigen.cmake
with
36 additions
and
0 deletions
.gitlab/ci/eigen.cmake
0 → 100644
+
36
−
0
View file @
49642f92
cmake_minimum_required
(
VERSION 3.12
)
set
(
FILE_NAME
"eigen-src"
)
set
(
EIGEN_URL
"https://gitlab.com/libeigen/eigen/-/archive/3.3.9/"
)
set
(
EIGEN_TARBALL
"eigen-3.3.9.tar"
)
set
(
EIGEN_MD5
"2543791ab461dd263816e9f8e8fec508"
)
file
(
DOWNLOAD
"
${
EIGEN_URL
}${
EIGEN_TARBALL
}
"
".gitlab/
${
EIGEN_TARBALL
}
"
STATUS eigen_download_status
EXPECTED_MD5
${
EIGEN_MD5
}
)
list
(
GET eigen_download_status 0 res
)
if
(
res
)
list
(
GET download_status 1 err
)
message
(
FATAL_ERROR
"Failed to download
${
EIGEN_TARBALL
}
from
${
EIGEN_URL
}
:
${
err
}
"
)
endif
()
execute_process
(
COMMAND
"
${
CMAKE_COMMAND
}
"
-E tar
xvzf
"./.gitlab/
${
EIGEN_TARBALL
}
"
RESULT_VARIABLE res
ERROR_VARIABLE err
ERROR_STRIP_TRAILING_WHITESPACE
)
if
(
res
)
message
(
FATAL_ERROR
"Failed to extract
${
FILE_NAME
}
:
${
err
}
"
)
endif
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment