From: rnc Date: Thu, 24 Oct 2013 11:43:44 +0000 (+0000) Subject: BUG: CMake build procedure: Placed the detection of MedFile after the detection of... X-Git-Tag: V7_3_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4cea330a6ef8eec7b39877da55ea9ac83a371aa7;p=modules%2Fparavis.git BUG: CMake build procedure: Placed the detection of MedFile after the detection of the MED module in order to detect MedFile from what was exposed by the MED module --- diff --git a/CMakeLists.txt b/CMakeLists.txt index db190e8c..e50d4d92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,14 +146,14 @@ 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) ELSE() MESSAGE(FATAL_ERROR "We absolutely need the Salome MED module to build plugins, please define MED_ROOT_DIR") ENDIF() + FIND_PACKAGE(SalomeMEDFile) + SALOME_LOG_OPTIONAL_PACKAGE(MEDFile SALOME_PARAVIS_BUILD_PLUGINS) ENDIF() ## Detection summary: