]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Scotch and Metis the most beautiful install in the world !
authorageay <ageay>
Tue, 16 Jul 2013 14:43:41 +0000 (14:43 +0000)
committerageay <ageay>
Tue, 16 Jul 2013 14:43:41 +0000 (14:43 +0000)
src/MEDPartitioner/CMakeLists.txt

index 2c5c62dac6c65af8812f25981a07ff8b16169dd3..863d030826c68972d40e35f96cdb5a5b465156d4 100644 (file)
@@ -33,18 +33,23 @@ INCLUDE_DIRECTORIES(
   ${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")