Salome HOME
Copyright update 2022
[modules/paravis.git] / src / Plugins / MEDReader / plugin / MEDLoaderForPV / CMakeLists.txt
index ce109aeef0f63f73a47f1b46fc9b82c114ac08c4..6da516b90e2604832bc5a49720478228f2d14631 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2020  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2022  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,11 +22,11 @@ target_include_directories(MEDLoaderForPV PRIVATE . ${MEDCOUPLING_INCLUDE_DIRS})
 
 target_link_libraries(MEDLoaderForPV VTK::CommonCore VTK::CommonDataModel VTK::IOXML ${MEDFILE_C_LIBRARIES})
 
-IF(HDF5_IS_PARALLEL)
+IF(MEDREADER_USE_MPI)#HDF5_IS_PARALLEL
   target_link_libraries(MEDLoaderForPV ${MEDCoupling_paramedloader})
-ELSE(HDF5_IS_PARALLEL)
+ELSE(MEDREADER_USE_MPI)
   TARGET_LINK_LIBRARIES(MEDLoaderForPV ${MEDCoupling_medloader})
-ENDIF(HDF5_IS_PARALLEL)
+ENDIF(MEDREADER_USE_MPI)
 
 install(TARGETS MEDLoaderForPV 
         DESTINATION lib/salome)#${CMAKE_INSTALL_LIBDIR}