Skip to content
Snippets Groups Projects
Commit d3364d6e authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Adjust logic for enabling python

parent ebddac74
No related branches found
No related tags found
1 merge request!218Fix shared libs default
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)
......
......@@ -94,7 +94,7 @@ list(INSERT CMAKE_MODULE_PATH 0
"${ADIOS2_SOURCE_DIR}/thirdparty/pybind11/pybind11/tools"
)
if(ADIOS2_USE_Python STREQUAL AUTO)
if(BUILD_SHARED_LIBS)
if(SHARED_LIBS_SUPPORTED AND ADIOS2_ENABLE_PIC)
set(Python_ADDITIONAL_VERSIONS 3 2.7)
find_package(PythonInterp)
find_package(PythonLibsNew)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment