Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
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
pybind11
Commits
d7a7edc1
Commit
d7a7edc1
authored
Oct 04, 2021
by
Henry Schreiner
Committed by
Ralf W. Grosse-Kunstleve
Oct 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: support Eigen configuration
parent
ad966556
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
tests/CMakeLists.txt
+10
-4
No files found.
tests/CMakeLists.txt
View file @
d7a7edc1
...
...
@@ -171,6 +171,14 @@ set(PYBIND11_CROSS_MODULE_TESTS test_exceptions.py test_local_bindings.py test_s
set
(
PYBIND11_CROSS_MODULE_GIL_TESTS test_gil_scoped.py
)
set
(
PYBIND11_EIGEN_REPO
"https://gitlab.com/libeigen/eigen.git"
CACHE STRING
"Eigen repository to use for tests"
)
# This hash is for 3.3.8, using a hash for security reasons
set
(
PYBIND11_EIGEN_VERSION
"dc252fbf00079ccab57948a164b1421703fe4361"
CACHE STRING
"Eigen version to use for tests"
)
# Check if Eigen is available; if not, remove from PYBIND11_TEST_FILES (but
# keep it in PYBIND11_PYTEST_FILES, so that we get the "eigen is not installed"
# skip message).
...
...
@@ -184,13 +192,11 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
message
(
FATAL_ERROR
"CMake 3.11+ required when using DOWNLOAD_EIGEN"
)
endif
()
set
(
EIGEN3_VERSION_STRING
"3.3.8"
)
include
(
FetchContent
)
FetchContent_Declare
(
eigen
GIT_REPOSITORY
https://gitlab.com/libeigen/eigen.git
GIT_TAG
${
EIGEN3_VERSION_STRING
}
)
GIT_REPOSITORY
"
${
PYBIND11_EIGEN_REPO
}
"
GIT_TAG
"
${
PYBIND11_EIGEN_VERSION
}
"
)
FetchContent_GetProperties
(
eigen
)
if
(
NOT eigen_POPULATED
)
...
...
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