Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Podhorszki, Norbert
ADIOS2
Commits
bd69bf7c
Commit
bd69bf7c
authored
Jun 28, 2017
by
Atkins, Charles Vernon
Browse files
Make sure only compatible python versions get used.
Fixes
#196
parent
1e4da3a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
bindings/python/CMakeLists.txt
View file @
bd69bf7c
...
...
@@ -2,6 +2,8 @@ if(NOT BUILD_SHARED_LIBS)
message
(
ERROR
"Python bindings are only supported for shared libraries"
)
endif
()
set
(
Python_ADDITIONAL_VERSIONS 3 2.7
)
find_package
(
PythonInterp REQUIRED
)
find_package
(
PythonLibsNew REQUIRED
)
pybind11_add_module
(
adios2py MODULE
...
...
cmake/DetectOptions.cmake
View file @
bd69bf7c
...
...
@@ -95,6 +95,8 @@ list(INSERT CMAKE_MODULE_PATH 0
)
if
(
ADIOS2_USE_Python STREQUAL AUTO
)
if
(
BUILD_SHARED_LIBS
)
set
(
Python_ADDITIONAL_VERSIONS 3 2.7
)
find_package
(
PythonInterp
)
find_package
(
PythonLibsNew
)
if
(
PYTHONLIBS_FOUND
)
if
(
ADIOS2_HAVE_MPI
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment