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
64a99b92
Commit
64a99b92
authored
Sep 28, 2017
by
Jason Rhinelander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify minimum needed cmake version in test suite
Fixes #1117
parent
a22dd2d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/CMakeLists.txt
+2
-2
No files found.
tests/CMakeLists.txt
View file @
64a99b92
...
@@ -89,7 +89,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
...
@@ -89,7 +89,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
# Eigen 3.3.1+ exports a cmake 3.0+ target for handling dependency requirements, but also
# Eigen 3.3.1+ exports a cmake 3.0+ target for handling dependency requirements, but also
# produces a fatal error if loaded from a pre-3.0 cmake.
# produces a fatal error if loaded from a pre-3.0 cmake.
if
(
NOT CMAKE_VERSION VERSION_LESS 3.0
)
if
(
NOT CMAKE_VERSION VERSION_LESS 3.0
)
find_package
(
Eigen3 QUIET CONFIG
)
find_package
(
Eigen3
3.2.7
QUIET CONFIG
)
if
(
EIGEN3_FOUND
)
if
(
EIGEN3_FOUND
)
if
(
EIGEN3_VERSION_STRING AND NOT EIGEN3_VERSION_STRING VERSION_LESS 3.3.1
)
if
(
EIGEN3_VERSION_STRING AND NOT EIGEN3_VERSION_STRING VERSION_LESS 3.3.1
)
set
(
PYBIND11_EIGEN_VIA_TARGET 1
)
set
(
PYBIND11_EIGEN_VIA_TARGET 1
)
...
@@ -99,7 +99,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
...
@@ -99,7 +99,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
if
(
NOT EIGEN3_FOUND
)
if
(
NOT EIGEN3_FOUND
)
# Couldn't load via target, so fall back to allowing module mode finding, which will pick up
# Couldn't load via target, so fall back to allowing module mode finding, which will pick up
# tools/FindEigen3.cmake
# tools/FindEigen3.cmake
find_package
(
Eigen3 QUIET
)
find_package
(
Eigen3
3.2.7
QUIET
)
endif
()
endif
()
if
(
EIGEN3_FOUND
)
if
(
EIGEN3_FOUND
)
...
...
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