From: Matthias Maier Date: Mon, 25 Jul 2016 14:04:24 +0000 (-0500) Subject: Rename python libraries X-Git-Tag: v8.5.0-rc1~809^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c34212577f42e21feb4e6273bd225401075f91;p=dealii.git Rename python libraries --- diff --git a/contrib/python-bindings/source/CMakeLists.txt b/contrib/python-bindings/source/CMakeLists.txt index 627014ec35..6ec21d3b6d 100644 --- a/contrib/python-bindings/source/CMakeLists.txt +++ b/contrib/python-bindings/source/CMakeLists.txt @@ -24,11 +24,26 @@ INCLUDE(FindPythonInterp) # FIXME: Once finalized, reconsider moving this definitions into # cmake/setup_dealii.cmake # -# Best effort guess on site-packages location: +# General information about deal.II: # +# PYTHON_BINDINGS_BASE_NAME *) +# PYTHON_BINDINGS_DEBUG_NAME *) +# PYTHON_BINDINGS_RELEASE_NAME *) +# +# Information about paths, install locations and names: +# +# DEAL_II_PYTHON_RELDIR *) **) +# +# *) Can be overwritten by the command line via -D<...> +# **) We do a best effort guess on site-packages location... +# + +SET_IF_EMPTY(PYTHON_BINDINGS_BASE_NAME "PyDealII") +SET_IF_EMPTY(PYTHON_BINDINGS_DEBUG_NAME "Debug") +SET_IF_EMPTY(PYTHON_BINDINGS_RELEASE_NAME "Release") -SET(DEAL_II_PYTHON_RELDIR - ${DEAL_II_LIBRARY_RELDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/pydealii +SET_IF_EMPTY(DEAL_II_PYTHON_RELDIR + "${DEAL_II_LIBRARY_RELDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/${PYTHON_BINDINGS_BASE_NAME}" ) INCLUDE_DIRECTORIES( @@ -62,6 +77,7 @@ FOREACH(_build ${DEAL_II_BUILD_TYPES}) PYTHON_ADD_MODULE(PyDealII_${_build_lowercase} ${_src}) SET_TARGET_PROPERTIES(PyDealII_${_build_lowercase} PROPERTIES + OUTPUT_NAME "${PYTHON_BINDINGS_${_build}_NAME}" VERSION "${DEAL_II_PACKAGE_VERSION}" SOVERSION "${DEAL_II_PACKAGE_VERSION}" LINK_FLAGS "${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${_build}}"