From: vsr Date: Wed, 23 Oct 2013 07:50:29 +0000 (+0000) Subject: MEDFile is a first-level dependency of PARAVIS X-Git-Tag: V7_3_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a52a1a6a3b3bfc7b90fef8e49a179605781b3e2;p=modules%2Fparavis.git MEDFile is a first-level dependency of PARAVIS --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae43981..db190e8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,9 +146,11 @@ FIND_PACKAGE(SalomeCAS REQUIRED) ## IF(SALOME_PARAVIS_BUILD_PLUGINS) SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR} CACHE PATH "Path to the Salome MED module") + FIND_PACKAGE(SalomeMEDFile) + SALOME_LOG_OPTIONAL_PACKAGE(MEDFile SALOME_PARAVIS_BUILD_PLUGINS) IF(EXISTS ${MED_ROOT_DIR}) LIST(APPEND CMAKE_MODULE_PATH "${MED_ROOT_DIR}/adm_local/cmake_files") - FIND_PACKAGE(SalomeMED REQUIRED) # Should load MEDFile too + FIND_PACKAGE(SalomeMED REQUIRED) ELSE() MESSAGE(FATAL_ERROR "We absolutely need the Salome MED module to build plugins, please define MED_ROOT_DIR") ENDIF()