File: link_core_mpi.patch

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,804 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,850; lisp: 1,106; xml: 1,049; makefile: 583; lex: 557
file content (25 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Drew Parsons <dparsons@debian.org>
Date: Mon, 21 Aug 2023 04:23:38 +0200
Subject: activates C and CXX always for MPI builds even with MPI_Fortran.

Needed since MPI support (core_mpi) needs MPI::MPI_CXX even when used

Needed since MPI support (core_mpi) needs MPI::MPI_CXX even when used
from Fortran. Otherwise testing/install/Fortran fails to compile.
---
 cmake/adios2-config-common.cmake.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/adios2-config-common.cmake.in b/cmake/adios2-config-common.cmake.in
index ceb2314..23f31b0 100644
--- a/cmake/adios2-config-common.cmake.in
+++ b/cmake/adios2-config-common.cmake.in
@@ -66,7 +66,7 @@ endif()
 
 include(CMakeFindDependencyMacro)
 
-if(NOT @BUILD_SHARED_LIBS@)
+if(NOT @BUILD_SHARED_LIBS@ OR ADIOS2_HAVE_MPI)
   # Ensure C is enabled for use by package dependencies found below.
   enable_language(C)
   # Ensure CXX is enabled so we can link against the C++ runtime library.