Skip to content
Snippets Groups Projects
Commit d2ec55c2 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Adjust python version

parent 7ca57370
No related branches found
No related tags found
No related merge requests found
Pipeline #165111 failed
......@@ -72,10 +72,10 @@ if (WITH_PYTHON_BINDINGS)
endif (ENABLE_TESTS)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
find_package(Boost REQUIRED COMPONENTS python)
find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT REQUIRED)
find_package(Boost REQUIRED COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
# add_subdirectory(pynesci)
add_subdirectory(pynesci)
endif (WITH_PYTHON_BINDINGS)
install(
......
......@@ -34,7 +34,7 @@ add_python_module(
HEADERS ${HEADERS}
PYTHON_SOURCES ${PYTHON_SOURCES}
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBRARIES Boost::python Boost::disable_autolinking conduit
LINK_LIBRARIES Boost::python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} Boost::disable_autolinking conduit
OUTPUT_DIRECTORY ${PYNESCI_OUTPUT_DIR}
)
......
......@@ -34,6 +34,6 @@ add_python_module(
HEADERS ${HEADERS}
PYTHON_SOURCES ${PYTHON_SOURCES}
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}
LINK_LIBRARIES nesci::consumer Boost::python Boost::disable_autolinking
LINK_LIBRARIES nesci::consumer Boost::python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} Boost::disable_autolinking
OUTPUT_DIRECTORY ${PYCONSUMER_OUTPUT_DIR}
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment