From: Drew Parsons <dparsons@debian.org>
Date: Sun, 20 Aug 2023 14:11:21 +0200
Subject: processes fortran SmallData library before processing binding tests

Otherwise MPI tests don't have the small_data module available
(MPI behaviour differs from Serial behaviour)
---
 testing/adios2/bindings/fortran/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: adios2/testing/adios2/bindings/fortran/CMakeLists.txt
===================================================================
--- adios2.orig/testing/adios2/bindings/fortran/CMakeLists.txt	2026-04-28 10:16:18.187449410 +0200
+++ adios2/testing/adios2/bindings/fortran/CMakeLists.txt	2026-04-28 10:16:18.186707524 +0200
@@ -7,6 +7,10 @@
 # accompanying file Copyright.txt for details.
 #------------------------------------------------------------------------------#
 
+add_library(SmallTestData_f OBJECT SmallTestData_mod.F90)
+add_library(ISmallTestData_f INTERFACE)
+target_sources(ISmallTestData_f INTERFACE $<TARGET_OBJECTS:SmallTestData_f>)
+
 macro(fortran_add_test_helper testname mpi)
   set(test_targets "")
   if(NOT "${mpi}" MATCHES "^MPI_(ALLOW|ONLY|NONE)$")
@@ -91,10 +95,6 @@
   )
 endif()
 
-add_library(SmallTestData_f OBJECT SmallTestData_mod.F90)
-add_library(ISmallTestData_f INTERFACE)
-target_sources(ISmallTestData_f INTERFACE $<TARGET_OBJECTS:SmallTestData_f>)
-
 foreach(tgt
     ${Test.Bindings.Fortran.BPWriteTypes-TARGETS}
     ${Test.Bindings.Fortran.Remove-TARGETS}
