Commit a9faaa00 authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Modified to regenerate wrappers correctly without MPI

parent 97532744
...@@ -38,6 +38,7 @@ SET( XdmfModelSource ...@@ -38,6 +38,7 @@ SET( XdmfModelSource
XdmfAttribute XdmfAttribute
XdmfGrid XdmfGrid
XdmfTopology XdmfTopology
XdmfTime
XdmfGeometry XdmfGeometry
) )
...@@ -89,11 +90,19 @@ IF(XDMF_REGENERATE_WRAPPERS) ...@@ -89,11 +90,19 @@ IF(XDMF_REGENERATE_WRAPPERS)
FOREACH(LANGUAGE Python) FOREACH(LANGUAGE Python)
STRING(TOLOWER ${LANGUAGE} lang) STRING(TOLOWER ${LANGUAGE} lang)
SET(swigtarget ${Xdmf_BINARY_DIR}/libsrc/Xdmf${LANGUAGE}.cxx) SET(swigtarget ${Xdmf_BINARY_DIR}/libsrc/Xdmf${LANGUAGE}.cxx)
ADD_CUSTOM_COMMAND( IF(XDMF_BUILD_MPI)
OUTPUT ${swigtarget} ADD_CUSTOM_COMMAND(
DEPENDS ${Xdmf_SOURCE_DIR}/libsrc/Xdmf.i OUTPUT ${swigtarget}
COMMAND ${SWIG_EXECUTABLE} DEPENDS ${Xdmf_SOURCE_DIR}/libsrc/Xdmf.i
ARGS -v -c++ -make_default -includeall "-${lang}" ${swig_extra_args} ${XDMF_SWIG_INCLUDES} -o "${swigtarget}" Xdmf.i) COMMAND ${SWIG_EXECUTABLE}
ARGS -v -c++ -make_default -includeall "-${lang}" ${swig_extra_args} ${XDMF_SWIG_INCLUDES} -o "${swigtarget}" Xdmf.i)
ELSE(XDMF_BUILD_MPI)
ADD_CUSTOM_COMMAND(
OUTPUT ${swigtarget}
DEPENDS ${Xdmf_SOURCE_DIR}/libsrc/Xdmf.i
COMMAND ${SWIG_EXECUTABLE}
ARGS -v -c++ -DXDMF_NO_MPI -make_default -includeall "-${lang}" ${swig_extra_args} ${XDMF_SWIG_INCLUDES} -o "${swigtarget}" Xdmf.i)
ENDIF(XDMF_BUILD_MPI)
ENDFOREACH(LANGUAGE) ENDFOREACH(LANGUAGE)
ADD_CUSTOM_TARGET(RerunSwig DEPENDS ADD_CUSTOM_TARGET(RerunSwig DEPENDS
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment