]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
MEDFile is a first-level dependency of PARAVIS
authorvsr <vsr@opencascade.com>
Wed, 23 Oct 2013 07:50:29 +0000 (07:50 +0000)
committervsr <vsr@opencascade.com>
Wed, 23 Oct 2013 07:50:29 +0000 (07:50 +0000)
CMakeLists.txt

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