From: GĂ©rald NICOLAS Date: Mon, 25 May 2020 09:02:20 +0000 (+0200) Subject: MEDCoupling indispensable X-Git-Tag: V9_7_0a1~18^2~106 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a619ad25da76e6a31abf4334b5acc63a7ec884d1;p=modules%2Fsmesh.git MEDCoupling indispensable --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f41109eb9..cf1162252 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,15 @@ IF(NOT WITH_SHAPER_STUDY AND SALOME_BUILD_TESTS) MESSAGE(WARNING "SHAPERSTUDY is not found; the corresponding tests will be omitted") ENDIF() +# Find MEDCoupling +# ================ +SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to the MEDCoupling tool") +IF(EXISTS ${MEDCOUPLING_ROOT_DIR}) + FIND_PACKAGE(SalomeMEDCoupling REQUIRED) # will reload HDF5, MEDFile, XDR, etc ... +ELSE(EXISTS ${MEDCOUPLING_ROOT_DIR}) + MESSAGE(FATAL_ERROR "We absolutely need the MEDCoupling tool, please define MEDCOUPLING_ROOT_DIR !") +ENDIF(EXISTS ${MEDCOUPLING_ROOT_DIR}) + ## ## SMESH specifics ##