]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Link to paramedloader lib depends on MEDREADER_USE_MPI only
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 23 Mar 2022 05:42:13 +0000 (06:42 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 23 Mar 2022 05:42:13 +0000 (06:42 +0100)
src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt

index 4976f74ae11ba3ddad772e6fd15deece2865d63d..75c4ec6f4e52916481fc7bdc8286ed835a9810ef 100644 (file)
@@ -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}