From 60154bd0e60a8360733607134977ae4394114fca Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 23 Mar 2022 06:42:13 +0100 Subject: [PATCH] Link to paramedloader lib depends on MEDREADER_USE_MPI only --- src/Plugins/MEDReader/plugin/MEDLoaderForPV/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} -- 2.39.2