From: Anthony Geay Date: Wed, 23 Mar 2022 05:42:13 +0000 (+0100) Subject: Link to paramedloader lib depends on MEDREADER_USE_MPI only X-Git-Tag: V9_9_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60154bd0e60a8360733607134977ae4394114fca;p=modules%2Fparavis.git Link to paramedloader lib depends on MEDREADER_USE_MPI only --- diff --git a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt index 4976f74a..75c4ec6f 100644 --- a/src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt +++ b/src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt @@ -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}