From f520f2daf98c5c9021733c38dd7c00bdec7d1243 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 21 Feb 2020 12:42:54 +0100 Subject: [PATCH] Fix ogs linking issue on JUWELS. --- Applications/CLI/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/CLI/CMakeLists.txt b/Applications/CLI/CMakeLists.txt index 4011756c46e..06eceb456d8 100644 --- a/Applications/CLI/CMakeLists.txt +++ b/Applications/CLI/CMakeLists.txt @@ -66,7 +66,7 @@ endif() if(OGS_USE_PETSC) target_link_libraries(ogs PRIVATE ${PETSC_LIBRARIES}) endif() -if(OGS_USE_MPI) +if(OGS_USE_MPI AND TARGET MPI::MPI_CXX) target_link_libraries(ogs PRIVATE MPI::MPI_CXX) endif() -- GitLab