X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=cmake_files%2FFindMetis.cmake;h=b731cb8c8c511190577e7b8ed11939aab1f3162d;hb=f69372fbd5c16c9923633938f0a57e58cd8f4fd5;hp=c4f6273620a99e38c8e9860be7626694c3816487;hpb=c9020954af7fe85dd75b34e5ea7951b0f1f4cb25;p=tools%2Fmedcoupling.git diff --git a/cmake_files/FindMetis.cmake b/cmake_files/FindMetis.cmake index c4f627362..b731cb8c8 100644 --- a/cmake_files/FindMetis.cmake +++ b/cmake_files/FindMetis.cmake @@ -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.")