${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
)
-IF(SALOME_MED_PARTITIONER_SCOTCH)
- ADD_DEFINITIONS(${SCOTCH_DEFINITIONS})
- ADD_DEFINITIONS("-DMED_ENABLE_SCOTCH")
- INCLUDE_DIRECTORIES(${SCOTCH_INCLUDE_DIRS})
-ENDIF(SALOME_MED_PARTITIONER_SCOTCH)
-
IF(SALOME_MED_PARTITIONER_METIS)
ADD_DEFINITIONS(${METIS_DEFINITIONS})
ADD_DEFINITIONS("-DMED_ENABLE_METIS")
INCLUDE_DIRECTORIES(${METIS_INCLUDE_DIRS})
ENDIF(SALOME_MED_PARTITIONER_METIS)
+
+########
+# VERY IMPORTANT PUT METIS BEFORE SCOTCH because
+# metis.h is also in SCOTCH install dir !!!
+########
+IF(SALOME_MED_PARTITIONER_SCOTCH)
+ ADD_DEFINITIONS(${SCOTCH_DEFINITIONS})
+ ADD_DEFINITIONS("-DMED_ENABLE_SCOTCH")
+ INCLUDE_DIRECTORIES(${SCOTCH_INCLUDE_DIRS})
+ENDIF(SALOME_MED_PARTITIONER_SCOTCH)
+
IF(SALOME_MED_PARTITIONER_PARMETIS)
ADD_DEFINITIONS(${PARMETIS_DEFINITIONS})
ADD_DEFINITIONS("-DMED_ENABLE_PARMETIS")