+# SWIG must run after the doc if we want to have the docstrings extracted from Doxygen
+# into the Python module:
+IF(MEDCOUPLING_BUILD_DOC)
+ LIST(APPEND SWIG_MODULE_MEDCoupling_EXTRA_FLAGS -DWITH_DOCSTRINGS)
+ LIST(APPEND SWIG_MODULE_MEDCoupling_EXTRA_DEPS
+ ${PROJECT_BINARY_DIR}/doc/MEDCoupling_doc.i
+ swig_ready)
+ENDIF()
+