From 175520138698865b24af06d590fee579f95a5607 Mon Sep 17 00:00:00 2001 From: mnt Date: Mon, 8 Jun 2015 10:30:21 +0300 Subject: [PATCH] Fix compilation error when building with -DSALOME_MED_STANDALONE=ON option --- src/MEDPartitioner_Swig/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MEDPartitioner_Swig/CMakeLists.txt b/src/MEDPartitioner_Swig/CMakeLists.txt index 05c8140f0..5245aab2c 100644 --- a/src/MEDPartitioner_Swig/CMakeLists.txt +++ b/src/MEDPartitioner_Swig/CMakeLists.txt @@ -19,7 +19,7 @@ INCLUDE(${SWIG_USE_FILE}) -ADD_DEFINITIONS(${PYTHON_DEFINITIONS}) +ADD_DEFINITIONS(${PYTHON_DEFINITIONS} ${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ) SET_SOURCE_FILES_PROPERTIES(MEDPartitioner.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(MEDPartitioner.i PROPERTIES SWIG_DEFINITIONS "-shadow") @@ -33,6 +33,7 @@ INCLUDE_DIRECTORIES( ${PTHREAD_INCLUDE_DIR} # pthread dependancy due to python2.7 library ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} + ${HDF5_INCLUDE_DIRS} ${MEDFILE_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/../MEDPartitioner ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling_Swig -- 2.39.2