Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Podhorszki, Norbert
ADIOS2
Commits
bd69bf7c
Commit
bd69bf7c
authored
7 years ago
by
Atkins, Charles Vernon
Browse files
Options
Downloads
Patches
Plain Diff
Make sure only compatible python versions get used.
Fixes
#196
parent
1e4da3a6
No related branches found
No related tags found
1 merge request
!200
Fix various python issues
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/python/CMakeLists.txt
+2
-0
2 additions, 0 deletions
bindings/python/CMakeLists.txt
cmake/DetectOptions.cmake
+2
-0
2 additions, 0 deletions
cmake/DetectOptions.cmake
with
4 additions
and
0 deletions
bindings/python/CMakeLists.txt
+
2
−
0
View file @
bd69bf7c
...
@@ -2,6 +2,8 @@ if(NOT BUILD_SHARED_LIBS)
...
@@ -2,6 +2,8 @@ if(NOT BUILD_SHARED_LIBS)
message
(
ERROR
"Python bindings are only supported for shared libraries"
)
message
(
ERROR
"Python bindings are only supported for shared libraries"
)
endif
()
endif
()
set
(
Python_ADDITIONAL_VERSIONS 3 2.7
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonLibsNew REQUIRED
)
find_package
(
PythonLibsNew REQUIRED
)
pybind11_add_module
(
adios2py MODULE
pybind11_add_module
(
adios2py MODULE
...
...
This diff is collapsed.
Click to expand it.
cmake/DetectOptions.cmake
+
2
−
0
View file @
bd69bf7c
...
@@ -95,6 +95,8 @@ list(INSERT CMAKE_MODULE_PATH 0
...
@@ -95,6 +95,8 @@ list(INSERT CMAKE_MODULE_PATH 0
)
)
if
(
ADIOS2_USE_Python STREQUAL AUTO
)
if
(
ADIOS2_USE_Python STREQUAL AUTO
)
if
(
BUILD_SHARED_LIBS
)
if
(
BUILD_SHARED_LIBS
)
set
(
Python_ADDITIONAL_VERSIONS 3 2.7
)
find_package
(
PythonInterp
)
find_package
(
PythonLibsNew
)
find_package
(
PythonLibsNew
)
if
(
PYTHONLIBS_FOUND
)
if
(
PYTHONLIBS_FOUND
)
if
(
ADIOS2_HAVE_MPI
)
if
(
ADIOS2_HAVE_MPI
)
...
...
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