From 4cea330a6ef8eec7b39877da55ea9ac83a371aa7 Mon Sep 17 00:00:00 2001 From: rnc Date: Thu, 24 Oct 2013 11:43:44 +0000 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2