File: link_core_mpi.patch

package info (click to toggle)
adios2 2.11.0%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 39,972 kB
  • sloc: ansic: 250,306; cpp: 189,875; yacc: 18,929; f90: 15,117; python: 8,047; perl: 7,126; sh: 3,031; lisp: 1,106; xml: 1,011; lex: 948; makefile: 598
file content (25 lines) | stat: -rw-r--r-- 1,047 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(-)

Index: adios2/cmake/adios2-config-common.cmake.in
===================================================================
--- adios2.orig/cmake/adios2-config-common.cmake.in	2025-12-06 11:24:21.007204088 +0100
+++ adios2/cmake/adios2-config-common.cmake.in	2025-12-06 11:24:21.001374857 +0100
@@ -67,7 +67,7 @@
 
 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.