Salome HOME
Reduced version of INTERPKernel tests can be run in MICROMED mode.
[tools/medcoupling.git] / cmake_files / FindMetis.cmake
index c4f6273620a99e38c8e9860be7626694c3816487..b731cb8c8c511190577e7b8ed11939aab1f3162d 100644 (file)
@@ -32,10 +32,6 @@ ENDIF(METIS_ROOT_DIR)
 FIND_LIBRARY(METIS_LIBRARIES metis)
 FIND_PATH(METIS_INCLUDE_DIRS metis.h)
 
-IF(NOT METIS_LIBRARIES OR NOT METIS_INCLUDE_DIRS)
-  MESSAGE(FATAL_ERROR "Metis not found; please set METIS_ROOT_DIR and check target directory.")
-ENDIF()
-
 INCLUDE(FindPackageHandleStandardArgs)
 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Metis REQUIRED_VARS METIS_INCLUDE_DIRS METIS_LIBRARIES)
 FILE(READ ${METIS_INCLUDE_DIRS}/metis.h metis_h_content)
@@ -47,7 +43,7 @@ FOREACH(ln ${list_metis_h_content})
   ENDIF("${ln}" MATCHES "^#define METIS_VER_MAJOR")
 ENDFOREACH(ln ${list_metis_h_content})
 IF(metis_major_version STREQUAL 5)
-  SET(MEDTOOL_METIS_V5 1)
+  SET(SALOME_MED_METIS_V5 1)
   MESSAGE(STATUS "Metis maj version 5 detected.")
 ELSE(metis_major_version STREQUAL 5)
    MESSAGE(STATUS "Metis maj version 4 detected.")