]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
BUG: CMake build procedure: Placed the detection of MedFile after the detection of...
authorrnc <rnc@opencascade.com>
Thu, 24 Oct 2013 11:43:44 +0000 (11:43 +0000)
committerrnc <rnc@opencascade.com>
Thu, 24 Oct 2013 11:43:44 +0000 (11:43 +0000)
CMakeLists.txt

index db190e8cccdcf9c1217d40fc0060924dad564088..e50d4d920635abffe0dc72939bf184700ffb4b6d 100644 (file)
@@ -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: